foxygit / doom Log in
commit a9728e7a4f20f1225e7a9e98ab70516b50716cbe
Author:     Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Thu Aug 6 18:24:34 2015 +0200
Commit:     Fabian Greffrath <fabian@greffrath.com>
CommitDate: Thu Aug 6 18:24:34 2015 +0200

    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
---
 src/i_video.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/i_video.c b/src/i_video.c
index 4f64b94d..fa9feb3b 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1868,11 +1868,6 @@ static void SetVideoMode(screen_mode_t *mode, int w, int h)
                                       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.