Browse Source

Fixed converting RLE encoded surfaces to other formats

Sam Lantinga 1 month ago
parent
commit
bf0752a8d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/SDL_surface.c

+ 1 - 1
src/video/SDL_surface.c

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