Explorar el Código

gl_shader_decompiler: Fix warnings with MarkAsUsed.

bunnei hace 8 años
padre
commit
1f6fe062ca
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/video_core/renderer_opengl/gl_shader_decompiler.cpp

+ 2 - 1
src/video_core/renderer_opengl/gl_shader_decompiler.cpp

@@ -207,7 +207,8 @@ private:
 
     /// Generates code representing a uniform (C buffer) register.
     std::string GetUniform(const Uniform& reg) {
-        declr_const_buffers[reg.index].MarkAsUsed(reg.index, reg.offset, stage);
+        declr_const_buffers[reg.index].MarkAsUsed(static_cast<unsigned>(reg.index),
+                                                  static_cast<unsigned>(reg.offset), stage);
         return 'c' + std::to_string(reg.index) + '[' + std::to_string(reg.offset) + ']';
     }