diff --git a/src/opengl_utils.c b/src/opengl_utils.c index 901383f..9342177 100644 --- a/src/opengl_utils.c +++ b/src/opengl_utils.c @@ -2,6 +2,7 @@ #include #include "opengl_utils.h" #include "dd.h" +#include "debug.h" PFNWGLCREATECONTEXTPROC xwglCreateContext; PFNWGLDELETECONTEXTPROC xwglDeleteContext; @@ -281,6 +282,14 @@ GLuint oglu_build_program(const GLchar* vert_source, const GLchar* frag_source) glGetShaderiv(frag_shader, GL_COMPILE_STATUS, &is_compiled); if (is_compiled == GL_FALSE) { + /* + GLint len = 0; + glGetShaderiv(frag_shader, GL_INFO_LOG_LENGTH, &len); + char* log = calloc(len + 50, 1); + glGetShaderInfoLog(frag_shader, len, &len, &log[0]); + TRACE("| GL_LOG: %s\n", log); + free(log); + */ if (glDeleteShader) { glDeleteShader(frag_shader);