mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
Fixing display bug when using flip-sequential swap effect.
This commit is contained in:
parent
25c7b6a3fa
commit
b32fc0ec27
1 changed files with 4 additions and 0 deletions
|
@ -3769,6 +3769,10 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||||
|
|
||||||
if (0 == (_render->m_debug&BGFX_DEBUG_IFH) )
|
if (0 == (_render->m_debug&BGFX_DEBUG_IFH) )
|
||||||
{
|
{
|
||||||
|
// reset the framebuffer to be the backbuffer; depending on the swap effect,
|
||||||
|
// if we don't do this we'll only see one frame of output and then nothing
|
||||||
|
setFrameBuffer(fbh);
|
||||||
|
|
||||||
bool viewRestart = false;
|
bool viewRestart = false;
|
||||||
uint8_t eye = 0;
|
uint8_t eye = 0;
|
||||||
uint8_t restartState = 0;
|
uint8_t restartState = 0;
|
||||||
|
|
Loading…
Reference in a new issue