Commit 3446f888 authored by Sam Lantinga's avatar Sam Lantinga

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
parent 843bc586
...@@ -1962,8 +1962,7 @@ SDL_UnRLESurface(SDL_Surface * surface, int recode) ...@@ -1962,8 +1962,7 @@ SDL_UnRLESurface(SDL_Surface * surface, int recode)
} }
} }
surface->map->info.flags &= surface->map->info.flags &=
(SDL_COPY_RLE_COLORKEY | SDL_COPY_RLE_ALPHAKEY); ~(SDL_COPY_RLE_COLORKEY | SDL_COPY_RLE_ALPHAKEY);
surface->map->info.flags |= SDL_COPY_RLE_DESIRED;
if (surface->map->data) { if (surface->map->data) {
SDL_free(surface->map->data); SDL_free(surface->map->data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment