mirror of https://github.com/bkaradzic/bgfx
VK: Disabled allocator callbacks.
This commit is contained in:
parent
61c770b0f5
commit
9547e79867
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue