Ver Fonte

gl_shader_decompiler: Correct return value of WriteTexsInstruction()

This should be returning void, not a std::string
Lioncash há 8 anos atrás
pai
commit
33e2033af5

+ 2 - 2
src/video_core/renderer_opengl/gl_shader_decompiler.cpp

@@ -750,8 +750,8 @@ private:
         }
         }
     }
     }
 
 
-    std::string WriteTexsInstruction(const Instruction& instr, const std::string& coord,
-                                     const std::string& texture) {
+    void WriteTexsInstruction(const Instruction& instr, const std::string& coord,
+                              const std::string& texture) {
         // Add an extra scope and declare the texture coords inside to prevent
         // Add an extra scope and declare the texture coords inside to prevent
         // overwriting them in case they are used as outputs of the texs instruction.
         // overwriting them in case they are used as outputs of the texs instruction.
         shader.AddLine('{');
         shader.AddLine('{');