Просмотр исходного кода

shader: Shader size is long uint, not uint.

Sam Spilsbury 10 лет назад
Родитель
Сommit
656a442433
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/video_core/shader/shader_jit_x64.cpp

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

@@ -856,7 +856,7 @@ void JitShader::Compile() {
     uintptr_t size = reinterpret_cast<uintptr_t>(GetCodePtr()) - reinterpret_cast<uintptr_t>(program);
     uintptr_t size = reinterpret_cast<uintptr_t>(GetCodePtr()) - reinterpret_cast<uintptr_t>(program);
     ASSERT_MSG(size <= MAX_SHADER_SIZE, "Compiled a shader that exceeds the allocated size!");
     ASSERT_MSG(size <= MAX_SHADER_SIZE, "Compiled a shader that exceeds the allocated size!");
 
 
-    LOG_DEBUG(HW_GPU, "Compiled shader size=%d", size);
+    LOG_DEBUG(HW_GPU, "Compiled shader size=%lu", size);
 }
 }
 
 
 JitShader::JitShader() {
 JitShader::JitShader() {