summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_util.cpp
diff options
context:
space:
mode:
authorJannik Vogel <email@jannikvogel.de>2016-12-05 02:10:12 +0100
committerJannik Vogel <email@jannikvogel.de>2016-12-05 21:11:24 +0100
commitfc4591fa4960d384ec39caa9a42f04f4bf4dd3c7 (patch)
tree8e95674fe6280a5e5c4b926bddd69f1b12f2c23d /src/video_core/renderer_opengl/gl_shader_util.cpp
parentReport shader uniform block size in case of mismatch (diff)
downloadyuzu-fc4591fa4960d384ec39caa9a42f04f4bf4dd3c7.tar
yuzu-fc4591fa4960d384ec39caa9a42f04f4bf4dd3c7.tar.gz
yuzu-fc4591fa4960d384ec39caa9a42f04f4bf4dd3c7.tar.bz2
yuzu-fc4591fa4960d384ec39caa9a42f04f4bf4dd3c7.tar.lz
yuzu-fc4591fa4960d384ec39caa9a42f04f4bf4dd3c7.tar.xz
yuzu-fc4591fa4960d384ec39caa9a42f04f4bf4dd3c7.tar.zst
yuzu-fc4591fa4960d384ec39caa9a42f04f4bf4dd3c7.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_util.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_util.cpp b/src/video_core/renderer_opengl/gl_shader_util.cpp
index 9a7a39b95..4da241d83 100644
--- a/src/video_core/renderer_opengl/gl_shader_util.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_util.cpp
@@ -4,6 +4,7 @@
#include <vector>
#include <glad/glad.h>
+#include "common/assert.h"
#include "common/logging/log.h"
#include "video_core/renderer_opengl/gl_shader_util.h"
@@ -87,6 +88,7 @@ GLuint LoadProgram(const char* vertex_shader, const char* fragment_shader) {
LOG_ERROR(Render_OpenGL, "Vertex shader:\n%s", vertex_shader);
LOG_ERROR(Render_OpenGL, "Fragment shader:\n%s", fragment_shader);
}
+ ASSERT_MSG(result == GL_TRUE, "Shader not linked");
glDeleteShader(vertex_shader_id);
glDeleteShader(fragment_shader_id);