changeset 2872:762f0663c36a

Use the desktop format instead of an arbitrary one.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 16 Dec 2008 17:40:30 +0000
parents cf09447f3d3c
children b33e38aaa027
files src/SDL_compat.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/SDL_compat.c	Sun Dec 14 07:22:15 2008 +0000
+++ b/src/SDL_compat.c	Tue Dec 16 17:40:30 2008 +0000
@@ -620,7 +620,7 @@
 
     if (!SDL_VideoTexture) {
         SDL_VideoTexture =
-            SDL_CreateTexture(SDL_PIXELFORMAT_ARGB8888,
+            SDL_CreateTexture(desktop_format,
                               SDL_TEXTUREACCESS_STREAMING, width, height);
     }
     if (!SDL_VideoTexture) {