Przeglądaj źródła

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

Sam Spilsbury 10 lat temu
rodzic
commit
bbffa6ad69
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/video_core/shader/shader_jit_x64.cpp

+ 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) {