Explorar o código

glsl: Remove frag color initialization

ameerj %!s(int64=5) %!d(string=hai) anos
pai
achega
cbce9ddd4a
Modificáronse 1 ficheiros con 0 adicións e 9 borrados
  1. 0 9
      src/shader_recompiler/backend/glsl/emit_glsl_special.cpp

+ 0 - 9
src/shader_recompiler/backend/glsl/emit_glsl_special.cpp

@@ -92,15 +92,6 @@ void EmitPhiMove(EmitContext& ctx, const IR::Value& phi_value, const IR::Value&
 
 void EmitPrologue(EmitContext& ctx) {
     InitializeOutputVaryings(ctx);
-
-    if (ctx.stage == Stage::Fragment && ctx.profile.need_declared_frag_colors) {
-        for (size_t index = 1; index < ctx.info.stores_frag_color.size(); ++index) {
-            if (ctx.info.stores_frag_color[index]) {
-                continue;
-            }
-            ctx.Add("frag_color{}=vec4(0,0,0,1);", index);
-        }
-    }
 }
 
 void EmitEpilogue(EmitContext&) {}