Ensure bgfx::init() respects BGFX_RESET_FLIP_AFTER_RENDER (#3073)

This updates the behaviour of bgfx::init() to ensure that it
checks for the BGFX_RESET_FLIP_AFTER_RENDER flag.
This commit is contained in:
Francis Hart
2023-04-03 20:15:25 +03:00
committed by GitHub
parent 4d11ad55f3
commit 27a801ea8e

View File

@@ -1913,6 +1913,7 @@ namespace bgfx
m_flipped = true;
m_debug = BGFX_DEBUG_NONE;
m_frameTimeLast = bx::getHPCounter();
m_flipAfterRender = !!(m_init.resolution.reset & BGFX_RESET_FLIP_AFTER_RENDER);
m_submit->create(_init.limits.minResourceCbSize);