Premultiplication in OCIO shader went wrong,

it used to apply alpha on source color after
conversion, not on result.
This commit is contained in:
Sergey Sharybin 2013-04-27 17:08:37 +00:00
parent d376a1b740
commit 6a04ff11af

@ -100,9 +100,9 @@ static const char *g_fragShaderText = ""
"\n"
" gl_FragColor = OCIODisplay(col, tex2);\n"
"\n"
" col[0] *= alpha;\n"
" col[1] *= alpha;\n"
" col[2] *= alpha;\n"
" gl_FragColor[0] *= alpha;\n"
" gl_FragColor[1] *= alpha;\n"
" gl_FragColor[2] *= alpha;\n"
" }\n"
"\n"
"}\n";