Browse Source

D3D11: Fixed crash.

Branimir Karadžić 10 years ago
parent
commit
6b9dc5c89c
1 changed files with 2 additions and 1 deletions
  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,
 			// 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;
 			uint8_t eye = 0;