fix crash disposing unavailable pipelines (was already done in GL display method but not d3d.) fixes #1546 without walls of text discussion and KBs of pointless diffs
This commit is contained in:
parent
7915ec8bc1
commit
ab020cfad2
|
@ -520,6 +520,10 @@ namespace BizHawk.Bizware.BizwareGL.Drivers.SlimDX
|
|||
{
|
||||
var pw = pipeline.Opaque as PipelineWrapper;
|
||||
|
||||
//unavailable pipelines will have no opaque
|
||||
if (pw == null)
|
||||
return;
|
||||
|
||||
pw.VertexDeclaration.Dispose();
|
||||
pw.FragmentShader.IGLShader.Release();
|
||||
pw.VertexShader.IGLShader.Release();
|
||||
|
|
Loading…
Reference in New Issue