mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed bug 5321 - crash in SDL_ConvertSurface with RLE surfaces
keep RLE information in flags when converting the surface
This commit is contained in:
parent
c70191d2b7
commit
19a65a46a6
@ -1026,7 +1026,7 @@ SDL_ConvertSurface(SDL_Surface * surface, const SDL_PixelFormat * format,
|
||||
surface->map->info.g = 0xFF;
|
||||
surface->map->info.b = 0xFF;
|
||||
surface->map->info.a = 0xFF;
|
||||
surface->map->info.flags = 0;
|
||||
surface->map->info.flags = (copy_flags & (SDL_COPY_RLE_COLORKEY | SDL_COPY_RLE_ALPHAKEY));
|
||||
SDL_InvalidateMap(surface->map);
|
||||
|
||||
/* Copy over the image data */
|
||||
|
Loading…
Reference in New Issue
Block a user