mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-24 11:04:15 +00:00
GPU: Fix layered attachment write (#4131)
Fixes a regression caused by #4003 where the code that writes `_vtgWritesRtLayer` was removed, breaking the crowd in mario strikers.
This commit is contained in:
parent
1a1d33a018
commit
5a085cba0f
1 changed files with 8 additions and 1 deletions
|
@ -1295,7 +1295,14 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
|
||||||
|
|
||||||
for (int stageIndex = 0; stageIndex < Constants.ShaderStages; stageIndex++)
|
for (int stageIndex = 0; stageIndex < Constants.ShaderStages; stageIndex++)
|
||||||
{
|
{
|
||||||
_currentProgramInfo[stageIndex] = gs.Shaders[stageIndex + 1]?.Info;
|
ShaderProgramInfo info = gs.Shaders[stageIndex + 1]?.Info;
|
||||||
|
|
||||||
|
if (info?.UsesRtLayer == true)
|
||||||
|
{
|
||||||
|
_vtgWritesRtLayer = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
_currentProgramInfo[stageIndex] = info;
|
||||||
}
|
}
|
||||||
|
|
||||||
_context.Renderer.Pipeline.SetProgram(gs.HostProgram);
|
_context.Renderer.Pipeline.SetProgram(gs.HostProgram);
|
||||||
|
|
Loading…
Reference in a new issue