shithub: choc

Download patch

ref: 63fad45ab003f47fc5f28dd6f72e959e1d1a5f0d
parent: a9728e7a4f20f1225e7a9e98ab70516b50716cbe
author: Fabian Greffrath <[email protected]>
date: Thu Aug 6 14:27:30 EDT 2015

Use the screen's native pixel format for the texture

instead of hard-coding it to ARGB8888.

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1873,7 +1873,7 @@
     // are going to change frequently.
 
     texture = SDL_CreateTexture(renderer,
-                                SDL_PIXELFORMAT_ARGB8888,
+                                SDL_GetWindowPixelFormat(screen),
                                 SDL_TEXTUREACCESS_STREAMING,
                                 UPSCALE*SCREENWIDTH, UPSCALE*SCREENHEIGHT);