From 6b9dc5c89ca7c3b92b99a308607dcff533787cba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 4 Jan 2016 10:53:06 -0800 Subject: [PATCH] D3D11: Fixed crash. --- src/renderer_d3d11.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 9fc75a8c4..b7518dba9 100644 --- a/src/renderer_d3d11.cpp +++ b/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;