Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-04-27 20:34:56 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-04-27 20:34:56 +0400
commit514e322895c06dd25d95f2c239f24b74a6ec1dff (patch)
treecac4e0614cba8749ad04fe2167a44c37c005cc13 /intern/opencolorio
parentf716eb17e2e89059e79ff6512137146d8f8cd62f (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.cc1
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;
}