summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 0108e708c..4edcbdaa8 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -543,18 +543,8 @@ private:
if (stage != ShaderType::Fragment) {
return;
}
-
- bool any = false;
- for (u32 render_target = 0; render_target < Maxwell::NumRenderTargets; ++render_target) {
- if (!IsRenderTargetEnabled(render_target)) {
- continue;
- }
- code.AddLine("layout (location = {}) out vec4 frag_color{};", render_target,
- render_target);
- any = true;
- }
- if (any) {
- code.AddNewLine();
+ for (u32 rt = 0; rt < Maxwell::NumRenderTargets; ++rt) {
+ code.AddLine("layout (location = {}) out vec4 frag_color{};", rt, rt);
}
}