Use the desktop format instead of an arbitrary one.
authorSam Lantinga <slouken@libsdl.org>
Tue, 16 Dec 2008 17:40:30 +0000
changeset 2872 762f0663c36a
parent 2871 cf09447f3d3c
child 2873 b33e38aaa027
Use the desktop format instead of an arbitrary one.
src/SDL_compat.c
--- 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) {