Explorar o código

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

Sam Spilsbury %!s(int64=10) %!d(string=hai) anos
pai
achega
bbffa6ad69
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {