diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-12 08:28:50 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-12 09:01:20 +0100 |
commit | 825d6295653599ef01b0224d986e03b18767fe74 (patch) | |
tree | 62baef02a808351d0b8b4f0e7e9ee055a7addb39 /src/video_core/renderer_opengl | |
parent | engines/maxwell_3d: Add TFB registers and store them in shader registry (diff) | |
download | yuzu-825d6295653599ef01b0224d986e03b18767fe74.tar yuzu-825d6295653599ef01b0224d986e03b18767fe74.tar.gz yuzu-825d6295653599ef01b0224d986e03b18767fe74.tar.bz2 yuzu-825d6295653599ef01b0224d986e03b18767fe74.tar.lz yuzu-825d6295653599ef01b0224d986e03b18767fe74.tar.xz yuzu-825d6295653599ef01b0224d986e03b18767fe74.tar.zst yuzu-825d6295653599ef01b0224d986e03b18767fe74.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 14 |
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); } } |