diff src/video/SDL_RLEaccel.c @ 2798:5f3831f1c3ea

Fixed crash in testalpha. I think this was supposed to clear those bits. :)
author Sam Lantinga <slouken@libsdl.org>
date Fri, 28 Nov 2008 19:59:46 +0000
parents 204be4fc2726
children b039bfa19ccd
line wrap: on
line diff
--- a/src/video/SDL_RLEaccel.c	Fri Nov 28 17:44:28 2008 +0000
+++ b/src/video/SDL_RLEaccel.c	Fri Nov 28 19:59:46 2008 +0000
@@ -1962,8 +1962,7 @@
             }
         }
         surface->map->info.flags &=
-            (SDL_COPY_RLE_COLORKEY | SDL_COPY_RLE_ALPHAKEY);
-        surface->map->info.flags |= SDL_COPY_RLE_DESIRED;
+            ~(SDL_COPY_RLE_COLORKEY | SDL_COPY_RLE_ALPHAKEY);
 
         if (surface->map->data) {
             SDL_free(surface->map->data);