mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-25 15:19:50 -06: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