Fix tearing in video playback when using kwin_gles
REVIEW: 109973
This commit is contained in:
parent
7854d12743
commit
c9f852a73f
1 changed files with 0 additions and 5 deletions
|
@ -380,7 +380,6 @@ void SceneOpenGL::paintBackground(QRegion region)
|
||||||
|
|
||||||
void SceneOpenGL::extendPaintRegion(QRegion ®ion, bool opaqueFullscreen)
|
void SceneOpenGL::extendPaintRegion(QRegion ®ion, bool opaqueFullscreen)
|
||||||
{
|
{
|
||||||
#ifndef KWIN_HAVE_OPENGLES
|
|
||||||
if (options->glPreferBufferSwap() == Options::ExtendDamage) { // only Extend "large" repaints
|
if (options->glPreferBufferSwap() == Options::ExtendDamage) { // only Extend "large" repaints
|
||||||
const QRegion displayRegion(0, 0, displayWidth(), displayHeight());
|
const QRegion displayRegion(0, 0, displayWidth(), displayHeight());
|
||||||
uint damagedPixels = 0;
|
uint damagedPixels = 0;
|
||||||
|
@ -401,10 +400,6 @@ void SceneOpenGL::extendPaintRegion(QRegion ®ion, bool opaqueFullscreen)
|
||||||
} else if (options->glPreferBufferSwap() == Options::PaintFullScreen) { // forced full rePaint
|
} else if (options->glPreferBufferSwap() == Options::PaintFullScreen) { // forced full rePaint
|
||||||
region = QRegion(0, 0, displayWidth(), displayHeight());
|
region = QRegion(0, 0, displayWidth(), displayHeight());
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
Q_UNUSED(region);
|
|
||||||
Q_UNUSED(opaqueFullscreen);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SceneOpenGL::windowAdded(Toplevel* c)
|
void SceneOpenGL::windowAdded(Toplevel* c)
|
||||||
|
|
Loading…
Reference in a new issue