diff options
author | gdkchan <gab.dark.100@gmail.com> | 2020-01-05 13:40:21 -0300 |
---|---|---|
committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
commit | 383452f5cf2a81d50ef1a5e630fba45c6fb97647 (patch) | |
tree | 44d3f4a2603a0d7521a40e3d26811b027fcc5dd8 /Ryujinx.Graphics.Gpu/Engine/Methods.cs | |
parent | a11f6f52350e2cd1ba80fb45a3e69194cdc605b5 (diff) |
Fix some shader disposal issues
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/Methods.cs')
-rw-r--r-- | Ryujinx.Graphics.Gpu/Engine/Methods.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Methods.cs b/Ryujinx.Graphics.Gpu/Engine/Methods.cs index d832c62e..90935b34 100644 --- a/Ryujinx.Graphics.Gpu/Engine/Methods.cs +++ b/Ryujinx.Graphics.Gpu/Engine/Methods.cs @@ -737,11 +737,11 @@ namespace Ryujinx.Graphics.Gpu.Engine GraphicsShader gs = ShaderCache.GetGraphicsShader(state, addresses); - _vsUsesInstanceId = gs.Shaders[0].Program.Info.UsesInstanceId; + _vsUsesInstanceId = gs.Shaders[0]?.Program.Info.UsesInstanceId ?? false; for (int stage = 0; stage < Constants.ShaderStages; stage++) { - ShaderProgramInfo info = gs.Shaders[stage].Program?.Info; + ShaderProgramInfo info = gs.Shaders[stage]?.Program.Info; _currentProgramInfo[stage] = info; |