HACK: colors fix. This should not be here, but I could not find better place to fix it. Contributes to OMP#OS-975

This commit is contained in:
Sergey Lapin
2021-03-30 01:35:11 +03:00
parent 73f7f8cbdb
commit 1ff618469f

View File

@@ -18,5 +18,6 @@ void main()
mediump float Cr = texture2D(yuvTexture, qt_TexCoord).b; mediump float Cr = texture2D(yuvTexture, qt_TexCoord).b;
mediump vec4 color = vec4(Y, Cb, Cr, 1.0); mediump vec4 color = vec4(Y, Cb, Cr, 1.0);
gl_FragColor = colorMatrix * color * opacity; mediump vec4 sw = colorMatrix * color * opacity;
gl_FragColor = vec4(sw.g, sw.b, sw.r, sw.a);
} }