Drop shaderTrait adjustment on crossfade

Crossfade is now hanlded by regular scene painting, only by offscreen
effects. There is no need for scene code to have awareness and use a
more expensive shader.
This commit is contained in:
David Edmundson 2022-10-12 09:38:39 +01:00 committed by Vlad Zahorodnii
parent 2cb9de67e2
commit 4d0f8e417c

View file

@ -441,7 +441,7 @@ void SceneOpenGL::render(Item *item, int mask, const QRegion &region, const Wind
ShaderTraits shaderTraits = ShaderTrait::MapTexture;
if (data.brightness() != 1.0 || data.crossFadeProgress() != 1.0) {
if (data.brightness() != 1.0) {
shaderTraits |= ShaderTrait::Modulate;
}
if (data.saturation() != 1.0) {