This commit is contained in:
riperiperi 2024-09-30 23:02:06 +03:00 committed by GitHub
commit 089b7d41a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -322,6 +322,9 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
_context.Renderer.Pipeline.BeginTransformFeedback(_drawState.Topology);
_prevTfEnable = true;
}
// Unset fragment enable bits for shader, as they need to be reset each draw.
_state.State.ShaderState[(int)ShaderStage.Fragment].Control &= ~(uint)1;
}
/// <summary>
@ -1420,7 +1423,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
for (int index = 0; index < 6; index++)
{
var shader = _state.State.ShaderState[index];
ref var shader = ref _state.State.ShaderState[index];
if (!shader.UnpackEnable() && index != 1)
{
continue;