Just assert that RLE encoding isn't active
We undo RLE encoding in the calling code, so we shouldn't need to do anything here.
This commit is contained in:
@@ -198,12 +198,8 @@ bool SDL_CalculateBlit(SDL_Surface *surface, SDL_Surface *dst)
|
|||||||
return SDL_SetError("Blit combination not supported");
|
return SDL_SetError("Blit combination not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SDL_HAVE_RLE
|
// We should have cleared out RLE at this point
|
||||||
// Clean everything out to start
|
SDL_assert(!(surface->internal_flags & SDL_INTERNAL_SURFACE_RLEACCEL));
|
||||||
if (surface->internal_flags & SDL_INTERNAL_SURFACE_RLEACCEL) {
|
|
||||||
SDL_UnRLESurface(surface);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
map->blit = SDL_SoftBlit;
|
map->blit = SDL_SoftBlit;
|
||||||
map->info.src_surface = surface;
|
map->info.src_surface = surface;
|
||||||
|
|||||||
Reference in New Issue
Block a user