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:
Le Philousophe 2019-06-09 17:52:44 +02:00 committed by Paul Gilbert
parent 1297ae2b76
commit ed34a41810

View file

@ -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;