Added check for memory leak.

This commit is contained in:
bkaradzic
2014-01-20 21:49:36 -08:00
parent 2c05b90792
commit 3e4ec1dc24
2 changed files with 9 additions and 1 deletions

View File

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