Explorar el Código

D3D11: Attempt fix for WinRT issue #632.

Branimir Karadžić hace 10 años
padre
commit
7007c803ce
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/renderer_d3d11.cpp

+ 3 - 0
src/renderer_d3d11.cpp

@@ -2224,6 +2224,9 @@ BX_PRAGMA_DIAGNOSTIC_POP();
 				}
 				}
 				else
 				else
 				{
 				{
+					m_deviceCtx->ClearState();
+					m_deviceCtx->Flush();
+
 					if (resize)
 					if (resize)
 					{
 					{
 						m_deviceCtx->OMSetRenderTargets(1, s_zero.m_rtv, NULL);
 						m_deviceCtx->OMSetRenderTargets(1, s_zero.m_rtv, NULL);