diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp index d224c4d84..54aa88b63 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/emit_context.cpp | |||
| @@ -340,7 +340,7 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile | |||
| 340 | header += fmt::format("layout(location={})patch {} vec4 patch{};", index, qualifier, index); | 340 | header += fmt::format("layout(location={})patch {} vec4 patch{};", index, qualifier, index); |
| 341 | } | 341 | } |
| 342 | for (size_t index = 0; index < info.stores_frag_color.size(); ++index) { | 342 | for (size_t index = 0; index < info.stores_frag_color.size(); ++index) { |
| 343 | if (!info.stores_frag_color[index]) { | 343 | if (!info.stores_frag_color[index] && !profile.need_declared_frag_colors) { |
| 344 | continue; | 344 | continue; |
| 345 | } | 345 | } |
| 346 | header += fmt::format("layout(location={})out vec4 frag_color{};", index, index); | 346 | header += fmt::format("layout(location={})out vec4 frag_color{};", index, index); |