Fixed crash in testalpha. I think this was supposed to clear those bits. :)
authorSam Lantinga <slouken@libsdl.org>
Fri, 28 Nov 2008 19:59:46 +0000
changeset 2798 5f3831f1c3ea
parent 2797 c81150fedf6f
child 2799 bbf3aac2672a
Fixed crash in testalpha. I think this was supposed to clear those bits. :)
src/video/SDL_RLEaccel.c
--- 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);