GRAPHICS: Fix rects handling in ManagedSurface::copyFrom
Like in create(), when using copyFrom the whole surface gets new data and is now completely dirty so let's use markAllDirty.
This commit is contained in:
parent
1297ae2b76
commit
ed34a41810
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ void ManagedSurface::copyFrom(const ManagedSurface &surf) {
|
|||
free();
|
||||
|
||||
_innerSurface.copyFrom(surf._innerSurface);
|
||||
clearDirtyRects();
|
||||
markAllDirty();
|
||||
|
||||
// Pixels data is now owned by us
|
||||
_disposeAfterUse = DisposeAfterUse::YES;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue