mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-04 23:55:08 +01:00
Fix NextSubpassNode
Subpass Index Bug
`NextSubpassNode` didn't increment `subpassIndex` which runs commands with the wrong subpass index resulting in them accessing invalid attachments or other bugs that may arise from using the wrong subpass.
This commit is contained in:
parent
defbfe8f78
commit
0a506088f4
@ -150,7 +150,10 @@ namespace skyline::gpu::interconnect {
|
||||
subpassIndex = 0;
|
||||
},
|
||||
|
||||
NODE(NextSubpassNode),
|
||||
[&](NextSubpassNode &node) {
|
||||
node(commandBuffer, cycle, gpu);
|
||||
++subpassIndex;
|
||||
},
|
||||
[&](SubpassFunctionNode &node) { node(commandBuffer, cycle, gpu, lRenderPass, subpassIndex); },
|
||||
[&](NextSubpassFunctionNode &node) { node(commandBuffer, cycle, gpu, lRenderPass, ++subpassIndex); },
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user