mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-22 05:51:59 +00:00
Fixed converting RLE encoded surfaces to other formats
This commit is contained in:
parent
c4cef905ae
commit
bf0752a8d7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue