Skip to content

Commit

Permalink
VK: Disabled allocator callbacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Jun 14, 2024
1 parent 61c770b commit 9547e79
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/renderer_vk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1325,8 +1325,15 @@ VK_IMPORT

if (BX_ENABLED(BGFX_CONFIG_DEBUG) )
{
s_allocationCb.pUserData = g_allocator;
m_allocatorCb = &s_allocationCb;
// Validation layer is calling freeFunction with pointers that are not allocated
// via callback mechanism. This is bug in validation layer, and work-around
// would be to keep track of allocated pointers and ignore those that are not
// allocated by it.
//
// Anyhow we just let VK take care of memory, until they fix the issue...
//
// s_allocationCb.pUserData = g_allocator;
// m_allocatorCb = &s_allocationCb;
BX_UNUSED(s_allocationCb);
}

Expand Down

0 comments on commit 9547e79

Please sign in to comment.