Эх сурвалжийг харах

shader: Format string must be provided inline and not as a variable

Sam Spilsbury 10 жил өмнө
parent
commit
bbffa6ad69

+ 1 - 1
src/video_core/shader/shader_jit_x64.cpp

@@ -148,7 +148,7 @@ static Instruction GetVertexShaderInstruction(size_t offset) {
 }
 
 static void LogCritical(const char* msg) {
-    LOG_CRITICAL(HW_GPU, msg);
+    LOG_CRITICAL(HW_GPU, "%s", msg);
 }
 
 void JitShader::Compile_Assert(bool condition, const char* msg) {