Преглед изворни кода

crashfix for (some) gui elements
looks like we did in fact need to reapply shaders at the tail end of GFXD3D11Device::endReset or it looses track and crashes out

AzaezelX пре 5 година
родитељ
комит
112ad70328
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      Engine/source/gfx/D3D11/gfxD3D11Device.cpp

+ 2 - 1
Engine/source/gfx/D3D11/gfxD3D11Device.cpp

@@ -665,7 +665,8 @@ void GFXD3D11Device::endReset(GFXD3D11WindowTarget* windowTarget)
 
    // Now reacquire all the resources we trashed earlier
    reacquireDefaultPoolResources();
-
+   mD3DDeviceContext->PSSetShader(mLastPixShader, NULL, 0);
+   mD3DDeviceContext->VSSetShader(mLastVertShader, NULL, 0);
    mInitialized = true;
    // Mark everything dirty and flush to card, for sanity.
    updateStates(true);