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:
zeromus 2019-04-20 14:52:32 -04:00
parent 7915ec8bc1
commit ab020cfad2
1 changed files with 4 additions and 0 deletions

View File

@ -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();