Disable vertex snapping for Wobbly Windows and Magic Lamp

The subdivided grid used by these effects doesn't account for pixel
alignment. If we force the generated WindowQuads to be rounded, the
quad's sizes no longer match the texture sizes, which results in blurry
rendering.

BUG: 461283

eeffects
This commit is contained in:
Arjen Hiemstra 2023-01-12 14:17:10 +01:00
parent 3ee51e3f21
commit 3118b48650
2 changed files with 4 additions and 0 deletions

View file

@ -23,6 +23,8 @@ MagicLampEffect::MagicLampEffect()
connect(effects, &EffectsHandler::windowDeleted, this, &MagicLampEffect::slotWindowDeleted);
connect(effects, &EffectsHandler::windowMinimized, this, &MagicLampEffect::slotWindowMinimized);
connect(effects, &EffectsHandler::windowUnminimized, this, &MagicLampEffect::slotWindowUnminimized);
setVertexSnappingMode(RenderGeometry::VertexSnappingMode::None);
}
bool MagicLampEffect::supported()

View file

@ -127,6 +127,8 @@ WobblyWindowsEffect::WobblyWindowsEffect()
connect(effects, &EffectsHandler::windowStepUserMovedResized, this, &WobblyWindowsEffect::slotWindowStepUserMovedResized);
connect(effects, &EffectsHandler::windowFinishUserMovedResized, this, &WobblyWindowsEffect::slotWindowFinishUserMovedResized);
connect(effects, &EffectsHandler::windowMaximizedStateChanged, this, &WobblyWindowsEffect::slotWindowMaximizeStateChanged);
setVertexSnappingMode(RenderGeometry::VertexSnappingMode::None);
}
WobblyWindowsEffect::~WobblyWindowsEffect()