From 9ad4a87532dae0ed10aff9da06d1a93059f04b23 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 16 Dec 2008 17:40:30 +0000 Subject: [PATCH] Use the desktop format instead of an arbitrary one. --- src/SDL_compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDL_compat.c b/src/SDL_compat.c index 838d0d4d1..df17fda14 100644 --- a/src/SDL_compat.c +++ b/src/SDL_compat.c @@ -620,7 +620,7 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags) if (!SDL_VideoTexture) { SDL_VideoTexture = - SDL_CreateTexture(SDL_PIXELFORMAT_ARGB8888, + SDL_CreateTexture(desktop_format, SDL_TEXTUREACCESS_STREAMING, width, height); } if (!SDL_VideoTexture) {