diff options
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm.cpp b/src/shader_recompiler/backend/glasm/emit_glasm.cpp index e23208d2c..70ca6f621 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm.cpp | |||
| @@ -298,8 +298,7 @@ void SetupOptions(const IR::Program& program, const Profile& profile, | |||
| 298 | if (stage == Stage::Fragment && runtime_info.force_early_z != 0) { | 298 | if (stage == Stage::Fragment && runtime_info.force_early_z != 0) { |
| 299 | header += "OPTION NV_early_fragment_tests;"; | 299 | header += "OPTION NV_early_fragment_tests;"; |
| 300 | } | 300 | } |
| 301 | const auto non_zero_frag_colors{info.stores_frag_color | std::views::drop(1)}; | 301 | if (stage == Stage::Fragment) { |
| 302 | if (std::ranges::find(non_zero_frag_colors, true) != non_zero_frag_colors.end()) { | ||
| 303 | header += "OPTION ARB_draw_buffers;"; | 302 | header += "OPTION ARB_draw_buffers;"; |
| 304 | } | 303 | } |
| 305 | } | 304 | } |