Error missing 'flags' initialization (see bug #2881)

This commit is contained in:
Sylvain 2021-04-28 23:40:26 +02:00
parent fcbf19b764
commit 1f3df900f9
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E

View File

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