mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 21:13:02 +01:00
Added check for memory leak.
This commit is contained in:
@@ -1062,6 +1062,8 @@ namespace bgfx
|
||||
|
||||
uint32_t Context::frame()
|
||||
{
|
||||
BX_CHECK(0 == m_instBufferCount, "Instance buffer allocated, but not used. This is incorrect, and causes memory leak.");
|
||||
|
||||
// wait for render thread to finish
|
||||
renderSemWait();
|
||||
frameNoRenderWait();
|
||||
|
||||
Reference in New Issue
Block a user