GRAPHICS: Properly initialize ManagedSurface copy constructor

This commit is contained in:
Eugene Sandulenko 2021-04-30 16:01:39 +02:00
parent c60009da68
commit 364407a5c6
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -77,6 +77,8 @@ ManagedSurface::ManagedSurface(Surface *surf, DisposeAfterUse::Flag disposeAfter
return;
}
_disposeAfterUse = disposeAfterUse;
if (disposeAfterUse == DisposeAfterUse::YES) {
_innerSurface.w = surf->w;
_innerSurface.h = surf->h;