VK: Disabled allocator callbacks.

This commit is contained in:
Бранимир Караџић 2024-06-13 20:32:12 -07:00
parent 61c770b0f5
commit 9547e79867
1 changed files with 9 additions and 2 deletions

View File

@ -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);
}