瀏覽代碼

D3D11: Fixed crash.

Branimir Karadžić 10 年之前
父節點
當前提交
6b9dc5c89c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/renderer_d3d11.cpp

+ 2 - 1
src/renderer_d3d11.cpp

@@ -4727,7 +4727,8 @@ BX_PRAGMA_DIAGNOSTIC_POP();
 		{
 		{
 			// reset the framebuffer to be the backbuffer; depending on the swap effect,
 			// 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
 			// if we don't do this we'll only see one frame of output and then nothing
-			setFrameBuffer(fbh);
+			FrameBufferHandle invalid = BGFX_INVALID_HANDLE;
+			setFrameBuffer(invalid);
 
 
 			bool viewRestart = false;
 			bool viewRestart = false;
 			uint8_t eye = 0;
 			uint8_t eye = 0;