diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-04-27 20:34:56 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-04-27 20:34:56 +0400 |
commit | 514e322895c06dd25d95f2c239f24b74a6ec1dff (patch) | |
tree | cac4e0614cba8749ad04fe2167a44c37c005cc13 /intern/opencolorio | |
parent | f716eb17e2e89059e79ff6512137146d8f8cd62f (diff) |
Print error log to the console if OCIO shader compilation failed
Diffstat (limited to 'intern/opencolorio')
-rw-r--r-- | intern/opencolorio/ocio_impl_glsl.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/opencolorio/ocio_impl_glsl.cc b/intern/opencolorio/ocio_impl_glsl.cc index cfa758e9a84..addca2ae96a 100644 --- a/intern/opencolorio/ocio_impl_glsl.cc +++ b/intern/opencolorio/ocio_impl_glsl.cc @@ -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; } |