Workaround repaint issue in blur effect with GLES

This is actually a bloody hack by forcing the screen to be
repainted in each frame. This needs to be fixed in a different
way or we at least have to turn blur off by default for GLES in
the next release.
This commit is contained in:
Martin Gräßlin 2011-09-17 20:01:59 +02:00
parent a05eecf4f0
commit fcbd22ad36

View file

@ -219,6 +219,13 @@ void BlurEffect::prePaintScreen(ScreenPrePaintData &data, int time)
m_damagedArea = QRegion(); m_damagedArea = QRegion();
m_currentBlur = QRegion(); m_currentBlur = QRegion();
#ifdef KWIN_HAVE_OPENGLES
// HACK: with GLES the screen does not get updated correctly.
// as a workaround we trigger full repaints on GLES
// we need to find a proper solution or default to blur off on GLES.
data.mask |= PAINT_SCREEN_TRANSFORMED;
#endif
effects->prePaintScreen(data, time); effects->prePaintScreen(data, time);
} }