diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 41296a9a5c..72dea96f8e 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -380,7 +380,6 @@ void SceneOpenGL::paintBackground(QRegion region) void SceneOpenGL::extendPaintRegion(QRegion ®ion, bool opaqueFullscreen) { -#ifndef KWIN_HAVE_OPENGLES if (options->glPreferBufferSwap() == Options::ExtendDamage) { // only Extend "large" repaints const QRegion displayRegion(0, 0, displayWidth(), displayHeight()); uint damagedPixels = 0; @@ -401,10 +400,6 @@ void SceneOpenGL::extendPaintRegion(QRegion ®ion, bool opaqueFullscreen) } else if (options->glPreferBufferSwap() == Options::PaintFullScreen) { // forced full rePaint region = QRegion(0, 0, displayWidth(), displayHeight()); } -#else - Q_UNUSED(region); - Q_UNUSED(opaqueFullscreen); -#endif } void SceneOpenGL::windowAdded(Toplevel* c)