浏览代码

Fixing display bug when using flip-sequential swap effect.

Mike Popoloski 10 年之前
父节点
当前提交
b32fc0ec27
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/renderer_d3d11.cpp

+ 4 - 0
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;