summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-17 22:33:05 +0200
committerbunnei <bunneidev@gmail.com>2018-04-17 22:36:44 +0200
commit1f6fe062ca5891349465fc67b3874500a61b672f (patch)
tree9f34da284a2e85466e7b63a9f27f029a47d8774a
parentgl_shader_decompiler: Cleanup logging, updating to NGLOG_*. (diff)
downloadyuzu-1f6fe062ca5891349465fc67b3874500a61b672f.tar
yuzu-1f6fe062ca5891349465fc67b3874500a61b672f.tar.gz
yuzu-1f6fe062ca5891349465fc67b3874500a61b672f.tar.bz2
yuzu-1f6fe062ca5891349465fc67b3874500a61b672f.tar.lz
yuzu-1f6fe062ca5891349465fc67b3874500a61b672f.tar.xz
yuzu-1f6fe062ca5891349465fc67b3874500a61b672f.tar.zst
yuzu-1f6fe062ca5891349465fc67b3874500a61b672f.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index bc5b92dfb..6233ee358 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/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) + ']';
}