From c52d3195cfe267e3c6c376b61ea7db6e4c09f213 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Thu, 4 Aug 2022 20:02:16 +0100 Subject: [PATCH] Ensure shader stage enable state matches pipeline stage enable state As the code was before, if we had a shader that was disabled and enabled again after without being invalidated the pipeline stage would stay disabled and break rendering. --- app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h b/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h index 781ede5a..7d28dddb 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h +++ b/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h @@ -1040,10 +1040,10 @@ namespace skyline::gpu::interconnect { pipelineStage.program = shader.program; } - pipelineStage.enabled = true; pipelineStage.needsRecompile = true; } + pipelineStage.enabled = true; shader.invalidated = false; } } else if (shader.stage != ShaderCompiler::Stage::VertexA) {