Fix cross-fading

We have to bind a modulation shader when we're cross-fading.

BUG: 341715
This commit is contained in:
Fredrik Höglund 2014-12-10 19:38:23 +01:00
parent 060b310082
commit 5ac159d47e

View file

@ -1429,7 +1429,7 @@ void SceneOpenGL2Window::performPaint(int mask, QRegion region, WindowPaintData
if (!shader) {
ShaderTraits traits = ShaderTrait::MapTexture;
if (data.opacity() != 1.0 || data.brightness() != 1.0)
if (data.opacity() != 1.0 || data.brightness() != 1.0 || data.crossFadeProgress() != 1.0)
traits |= ShaderTrait::Modulate;
if (data.saturation() != 1.0)