Added occlusion query handle debug code.

This commit is contained in:
Branimir Karadžić
2015-11-02 16:38:55 -08:00
parent 202bfbd174
commit dc71df5ecc
3 changed files with 26 additions and 3 deletions

View File

@@ -1328,6 +1328,11 @@ namespace bgfx
{
BX_CHECK(0 == m_instBufferCount, "Instance buffer allocated, but not used. This is incorrect, and causes memory leak.");
if (BX_ENABLED(BGFX_CONFIG_DEBUG_OCCLUSION) )
{
m_occlusionQuerySet.clear();
}
// wait for render thread to finish
renderSemWait();
frameNoRenderWait();