summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannik Vogel <email@jannikvogel.de>2016-12-04 13:11:48 +0100
committerJannik Vogel <email@jannikvogel.de>2016-12-05 21:11:24 +0100
commit4088afe23c8a109d84d97c9d1e7708606a9dfffe (patch)
treeb0152406e455f930a2ce8cbd0c8a416e2351d811
parentPrint broken shader code to log (diff)
downloadyuzu-4088afe23c8a109d84d97c9d1e7708606a9dfffe.tar
yuzu-4088afe23c8a109d84d97c9d1e7708606a9dfffe.tar.gz
yuzu-4088afe23c8a109d84d97c9d1e7708606a9dfffe.tar.bz2
yuzu-4088afe23c8a109d84d97c9d1e7708606a9dfffe.tar.lz
yuzu-4088afe23c8a109d84d97c9d1e7708606a9dfffe.tar.xz
yuzu-4088afe23c8a109d84d97c9d1e7708606a9dfffe.tar.zst
yuzu-4088afe23c8a109d84d97c9d1e7708606a9dfffe.zip
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 3f2255e06..ba65db419 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -1083,7 +1083,9 @@ void RasterizerOpenGL::SetShader() {
GLint block_size;
glGetActiveUniformBlockiv(current_shader->shader.handle, block_index,
GL_UNIFORM_BLOCK_DATA_SIZE, &block_size);
- ASSERT_MSG(block_size == sizeof(UniformData), "Uniform block size did not match!");
+ ASSERT_MSG(block_size == sizeof(UniformData),
+ "Uniform block size did not match! Got %d, expected %zu",
+ static_cast<int>(block_size), sizeof(UniformData));
glUniformBlockBinding(current_shader->shader.handle, block_index, 0);
// Update uniforms