mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-12 05:18:40 +00:00
Fixed converting RLE encoded surfaces to other formats
This commit is contained in:
@@ -2014,7 +2014,7 @@ SDL_Surface *SDL_ConvertSurfaceAndColorspace(SDL_Surface *surface, SDL_PixelForm
|
||||
}
|
||||
}
|
||||
|
||||
if (surface->pixels) {
|
||||
if (surface->pixels || SDL_MUSTLOCK(surface)) {
|
||||
result = SDL_BlitSurfaceUnchecked(surface, &bounds, convert, &bounds);
|
||||
} else {
|
||||
result = true;
|
||||
|
||||
Reference in New Issue
Block a user