Explorar o código

Fixed converting RLE encoded surfaces to other formats

Sam Lantinga hai 4 meses
pai
achega
bf0752a8d7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
         result = SDL_BlitSurfaceUnchecked(surface, &bounds, convert, &bounds);
     } else {
     } else {
         result = true;
         result = true;