diff options
author | Ton Roosendaal <ton@blender.org> | 2013-04-28 15:05:49 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2013-04-28 15:05:49 +0400 |
commit | 753fe9f0b970c83d253a79f4b12a13d3cc5f5fad (patch) | |
tree | 6f159bc202a08b98e23826bec434541d835b88bf /intern/opencolorio | |
parent | eae651db3acce0c45727189a7adef30c7f1740b2 (diff) |
Keeping my commit count high!
Previous GLSL code had error, the if() statement had to be negated.
Diffstat (limited to 'intern/opencolorio')
-rw-r--r-- | intern/opencolorio/ocio_impl_glsl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/opencolorio/ocio_impl_glsl.cc b/intern/opencolorio/ocio_impl_glsl.cc index 9503b272752..dc82e60d66a 100644 --- a/intern/opencolorio/ocio_impl_glsl.cc +++ b/intern/opencolorio/ocio_impl_glsl.cc @@ -92,7 +92,7 @@ static const char *g_fragShaderText = "" "void main()\n" "{\n" " vec4 col = texture2D(tex1, gl_TexCoord[0].st);\n" -" if (predivide == false || col[3] <= 0.0 || col[3] >= 1.0) {\n" +" if (predivide && col[3] > 0.0 && col[3] < 1.0) {\n" " float inv_alpha = 1.0 / col[3];\n" " col[0] *= inv_alpha;\n" " col[1] *= inv_alpha;\n" |