Added flush after render reset flag.

This commit is contained in:
Branimir Karadžić
2015-05-15 13:14:35 -07:00
parent 4422e7227a
commit 2a49e5a143
6 changed files with 36 additions and 10 deletions

View File

@@ -5590,6 +5590,11 @@ namespace bgfx { namespace gl
if (0 < _render->m_num)
{
if (0 != (m_resolution.m_flags & BGFX_RESET_FLUSH_AFTER_RENDER) )
{
GL_CHECK(glFlush() );
}
captureElapsed = -bx::getHPCounter();
capture();
captureElapsed += bx::getHPCounter();