This commit is contained in:
Gapkalov Dmitry 2023-02-13 05:05:46 +03:00 committed by GitHub
commit f52fbbd1ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1324,7 +1324,7 @@ end:
/* Enable alpha blending by default if the new surface has an
* alpha channel or alpha modulation */
if ((surface->format->Amask && format->Amask) ||
if ((convert->format->Amask && format->Amask) ||
(palette_has_alpha && format->Amask) ||
(copy_flags & SDL_COPY_MODULATE_ALPHA)) {
SDL_SetSurfaceBlendMode(convert, SDL_BLENDMODE_BLEND);