shithub: choc

Download patch

ref: a9728e7a4f20f1225e7a9e98ab70516b50716cbe
parent: f0b5b0bcb0e51b3f642725e55b16b2b6e0a56829
author: Fabian Greffrath <[email protected]>
date: Thu Aug 6 14:24:34 EDT 2015

Do not change surface blend modes

Surface blending is done with SDL_BLENDMODE_NONE by default, so no
need to call SDL_SetSurfaceBlendMode() at all.

Thanks, @bradharding

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1868,11 +1868,6 @@
                                       0, 0, 0, 0);
     SDL_FillRect(rgbabuffer_upscaled, NULL, 0);
 
-    // Prevent alpha-blending for scaled blitting
-
-    SDL_SetSurfaceBlendMode(rgbabuffer, SDL_BLENDMODE_NONE);
-    SDL_SetSurfaceBlendMode(rgbabuffer_upscaled, SDL_BLENDMODE_NONE);
-
     // Create the texture that the upscaled RGBA surface gets loaded into.
     // SDL_TEXTUREACCESS_STREAMING means that this texture's content
     // are going to change frequently.