Merge commit '1f3df900f919e7177e480e63c07447db232564a1' into main

This commit is contained in:
Sam Lantinga 2021-05-07 12:28:30 -07:00
commit 0ebf56b5f1
1 changed files with 1 additions and 0 deletions

View File

@ -1423,6 +1423,7 @@ SDL_RLESurface(SDL_Surface * surface)
return -1; return -1;
} }
flags = surface->map->info.flags;
if (flags & SDL_COPY_COLORKEY) { if (flags & SDL_COPY_COLORKEY) {
/* ok */ /* ok */
} else if ((flags & SDL_COPY_BLEND) && surface->format->Amask) { } else if ((flags & SDL_COPY_BLEND) && surface->format->Amask) {