From 71cf8dc668a86a14ea73c6bc442391996fe247cc Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 30 Jul 2015 13:08:31 +0200 Subject: [PATCH] If a shader fails to compile, output it for easier debugging. --- util.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/util.cpp b/util.cpp index a6175b4..0a294e6 100644 --- a/util.cpp +++ b/util.cpp @@ -156,6 +156,7 @@ GLuint compile_shader(const string &shader_src, GLenum type) GLint status; glGetShaderiv(obj, GL_COMPILE_STATUS, &status); if (status == GL_FALSE) { + fprintf(stderr, "Failed to compile shader: %s\n", shader_src.c_str()); exit(1); } -- 2.39.2