From c9f852a73f875ffcaedde288af3afea6596c2782 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 12 Apr 2013 14:13:43 +0200 Subject: [PATCH] Fix tearing in video playback when using kwin_gles REVIEW: 109973 --- scene_opengl.cpp | 5 ----- 1 file changed, 5 deletions(-) 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)