diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-04 08:54:06 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-04 08:55:03 +0200 |
commit | dde5dce7366e58a35dce308ef81fa9debb038334 (patch) | |
tree | e9f2c0afda97c8a9d62be690fcc5a52f9e389482 /src/video_core | |
parent | Merge pull request #908 from lioncash/memory (diff) | |
download | yuzu-dde5dce7366e58a35dce308ef81fa9debb038334.tar yuzu-dde5dce7366e58a35dce308ef81fa9debb038334.tar.gz yuzu-dde5dce7366e58a35dce308ef81fa9debb038334.tar.bz2 yuzu-dde5dce7366e58a35dce308ef81fa9debb038334.tar.lz yuzu-dde5dce7366e58a35dce308ef81fa9debb038334.tar.xz yuzu-dde5dce7366e58a35dce308ef81fa9debb038334.tar.zst yuzu-dde5dce7366e58a35dce308ef81fa9debb038334.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_manager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_manager.cpp b/src/video_core/renderer_opengl/gl_shader_manager.cpp index e81fcbbc4..1d88f8cec 100644 --- a/src/video_core/renderer_opengl/gl_shader_manager.cpp +++ b/src/video_core/renderer_opengl/gl_shader_manager.cpp @@ -17,9 +17,8 @@ static void SetShaderUniformBlockBinding(GLuint shader, const char* name, if (ub_index != GL_INVALID_INDEX) { GLint ub_size = 0; glGetActiveUniformBlockiv(shader, ub_index, GL_UNIFORM_BLOCK_DATA_SIZE, &ub_size); - ASSERT_MSG(ub_size == expected_size, - "Uniform block size did not match! Got {}, expected {}", - static_cast<int>(ub_size), expected_size); + ASSERT_MSG(static_cast<size_t>(ub_size) == expected_size, + "Uniform block size did not match! Got {}, expected {}", ub_size, expected_size); glUniformBlockBinding(shader, ub_index, static_cast<GLuint>(binding)); } } |