mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-13 13:58:50 +00:00
SDL_ConvertSurface: clear sdl2-compat.surface2 on the converted surface
Fixes https://github.com/libsdl-org/sdl2-compat/issues/534
This commit is contained in:
@@ -2153,6 +2153,9 @@ end:
|
|||||||
if (!SDL_CopyProperties(surface->props, SDL_GetSurfaceProperties(convert))) {
|
if (!SDL_CopyProperties(surface->props, SDL_GetSurfaceProperties(convert))) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure the new surface doesn't reference an old SDL2 surface.
|
||||||
|
SDL_ClearProperty(SDL_GetSurfaceProperties(convert), "sdl2-compat.surface2");
|
||||||
}
|
}
|
||||||
|
|
||||||
// We're ready to go!
|
// We're ready to go!
|
||||||
|
|||||||
Reference in New Issue
Block a user