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
|
@ -47,7 +47,7 @@ namespace BizHawk.Bizware.Graphics
|
|||
{
|
||||
public IntPtr VSPendingBuffer, PSPendingBuffer;
|
||||
public int VSBufferSize, PSBufferSize;
|
||||
public bool VSBufferDirty, PSBufferDirty;
|
||||
public bool VSBufferDirty, PSBufferDirty;
|
||||
}
|
||||
|
||||
public readonly D3D11PendingBuffer[] PendingBuffers = new D3D11PendingBuffer[ID3D11DeviceContext.CommonShaderConstantBufferSlotCount];
|
||||
|
|
|
@ -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