Make sure to recreate stored pipelines on resetting D3D11 device
Fixes crashes whenever a reset ends up occurring due to a lost device
This commit is contained in:
parent
6cedcc2221
commit
8e8d718c7e
|
@ -114,6 +114,11 @@ namespace BizHawk.Bizware.Graphics
|
|||
|
||||
RasterizerState = Device.CreateRasterizerState(rd);
|
||||
|
||||
foreach (var pipeline in Pipelines)
|
||||
{
|
||||
pipeline.CreatePipeline();
|
||||
}
|
||||
|
||||
foreach (var tex2d in Textures)
|
||||
{
|
||||
tex2d.CreateTexture();
|
||||
|
|
Loading…
Reference in New Issue