소스 검색

emit_glsl_special: Skip initialization of frag_color0

Fixes rendering in Devil May Cry without regressing Ori and the Blind Forest.
ameerj 5 년 전
부모
커밋
1c648f176c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/shader_recompiler/backend/glsl/emit_glsl_special.cpp

+ 1 - 1
src/shader_recompiler/backend/glsl/emit_glsl_special.cpp

@@ -94,7 +94,7 @@ void EmitPrologue(EmitContext& ctx) {
     InitializeOutputVaryings(ctx);
 
     if (ctx.stage == Stage::Fragment && ctx.profile.need_declared_frag_colors) {
-        for (size_t index = 0; index < ctx.info.stores_frag_color.size(); ++index) {
+        for (size_t index = 1; index < ctx.info.stores_frag_color.size(); ++index) {
             if (ctx.info.stores_frag_color[index]) {
                 continue;
             }