Fixed converting RLE encoded surfaces to other formats

This commit is contained in:
Sam Lantinga
2025-10-29 09:06:25 -07:00
parent c4cef905ae
commit bf0752a8d7

View File

@@ -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;