No need to reset the damage for objects that we already know have none
This commit is contained in:
parent
848e9e2076
commit
22f2e3e43c
1 changed files with 1 additions and 1 deletions
|
@ -1285,8 +1285,8 @@ static bool bindSurfaceTexture(SurfaceItem *surfaceItem)
|
|||
const QRegion region = surfaceItem->damage();
|
||||
if (!region.isEmpty()) {
|
||||
platformSurfaceTexture->update(region);
|
||||
surfaceItem->resetDamage();
|
||||
}
|
||||
surfaceItem->resetDamage();
|
||||
return true;
|
||||
}
|
||||
if (!surfacePixmap->isValid()) {
|
||||
|
|
Loading…
Reference in a new issue