Preserve the desire for RLE acceleration
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Nov 2008 10:43:50 +0000
changeset 2805 2ed5ff5373d8
parent 2804 7af8c4ad427e
child 2806 938aa47f903a
Preserve the desire for RLE acceleration
src/video/SDL_blit.c
--- a/src/video/SDL_blit.c	Sat Nov 29 06:29:33 2008 +0000
+++ b/src/video/SDL_blit.c	Sat Nov 29 10:43:50 2008 +0000
@@ -228,9 +228,8 @@
     map->info.dst_pitch = dst->pitch;
 
     /* See if we can do RLE acceleration */
-    if (surface->map->info.flags & SDL_COPY_RLE_DESIRED) {
+    if (map->info.flags & SDL_COPY_RLE_DESIRED) {
         if (SDL_RLESurface(surface) == 0) {
-            surface->map->info.flags &= ~SDL_COPY_RLE_DESIRED;
             return 0;
         }
     }