From b32fc0ec27868d79adbc44c9c49728f74b467e7a Mon Sep 17 00:00:00 2001 From: Mike Popoloski Date: Sun, 24 May 2015 13:29:21 -0400 Subject: [PATCH] Fixing display bug when using flip-sequential swap effect. --- src/renderer_d3d11.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 299e77d7..efcf1468 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -3769,6 +3769,10 @@ BX_PRAGMA_DIAGNOSTIC_POP(); 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; uint8_t eye = 0; uint8_t restartState = 0;