Sfoglia il codice sorgente

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

Sam Spilsbury 10 anni fa
parent
commit
bbffa6ad69
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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) {