summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-10-15 20:16:55 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2018-10-15 20:26:50 +0200
commit27916764b1f6b153884d73c063b6ff3521402dbd (patch)
treec3049054ae75964d856b60499775ebf2cae74e54
parentMerge pull request #1486 from lioncash/file (diff)
downloadyuzu-27916764b1f6b153884d73c063b6ff3521402dbd.tar
yuzu-27916764b1f6b153884d73c063b6ff3521402dbd.tar.gz
yuzu-27916764b1f6b153884d73c063b6ff3521402dbd.tar.bz2
yuzu-27916764b1f6b153884d73c063b6ff3521402dbd.tar.lz
yuzu-27916764b1f6b153884d73c063b6ff3521402dbd.tar.xz
yuzu-27916764b1f6b153884d73c063b6ff3521402dbd.tar.zst
yuzu-27916764b1f6b153884d73c063b6ff3521402dbd.zip
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 84582c777..8d5f277e2 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -286,7 +286,8 @@ void RasterizerOpenGL::SetupShaders(GLenum primitive_mode) {
&ubo, sizeof(ubo), static_cast<std::size_t>(uniform_buffer_alignment));
// Bind the buffer
- glBindBufferRange(GL_UNIFORM_BUFFER, stage, buffer_cache.GetHandle(), offset, sizeof(ubo));
+ glBindBufferRange(GL_UNIFORM_BUFFER, static_cast<GLuint>(stage), buffer_cache.GetHandle(),
+ offset, static_cast<GLsizeiptr>(sizeof(ubo)));
Shader shader{shader_cache.GetStageProgram(program)};