Print error log to the console if OCIO shader compilation failed
authorSergey Sharybin <sergey.vfx@gmail.com>
Sat, 27 Apr 2013 16:34:56 +0000 (16:34 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sat, 27 Apr 2013 16:34:56 +0000 (16:34 +0000)
intern/opencolorio/ocio_impl_glsl.cc

index cfa758e9a84bf90d5cf0d4074ce9b543600816bd..addca2ae96a459006f8c7fd1bf8fb657473cae21 100644 (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;
        }