Print error log to the console if OCIO shader compilation failed

This commit is contained in:
Sergey Sharybin 2013-04-27 16:34:56 +00:00
parent f716eb17e2
commit 514e322895
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ static GLuint compileShaderText(GLenum shaderType, const char *text)
GLchar log[1000];
GLsizei len;
glGetShaderInfoLog(shader, 1000, &len, log);
fprintf(stderr, "Shader compile error:\n%s\n", log);
return 0;
}