mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-29 21:20:48 -07:00
Fix some shader disposal issues
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user