commit 06aee4662c69ee944b455264bd11bf864bfdc7da
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Wed Aug 12 12:22:16 2015 +0200
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Wed Aug 12 12:22:16 2015 +0200
Revert "Use the screen's native pixel format for the texture"
This reverts commit 63fad45ab003f47fc5f28dd6f72e959e1d1a5f0d.
TODO: This needs to be taken care of when creating the SDL_surfaces.
At least we know that SDL_UpdateTexture() does not take care of the
pixel order when uploading a SDL_surface to a texture.
---
src/i_video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/i_video.c b/src/i_video.c
index 6ef2b19f..fa9feb3b 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1873,7 +1873,7 @@ static void SetVideoMode(screen_mode_t *mode, int w, int h)
// are going to change frequently.
texture = SDL_CreateTexture(renderer,
- SDL_GetWindowPixelFormat(screen),
+ SDL_PIXELFORMAT_ARGB8888,
SDL_TEXTUREACCESS_STREAMING,
UPSCALE*SCREENWIDTH, UPSCALE*SCREENHEIGHT);