mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
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
This commit is contained in:
parent
340adae967
commit
112ad70328
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue