Fixed crash in testalpha. I think this was supposed to clear those bits. :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403259
This commit is contained in:
Sam Lantinga 2008-11-28 19:59:46 +00:00
parent 843bc58619
commit 3446f888c5

View file

@ -1962,8 +1962,7 @@ SDL_UnRLESurface(SDL_Surface * surface, int recode)
}
}
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);