diff src/SDL_compat.c @ 2765:f55c87ae336b

Final merge of Google Summer of Code 2008 work... Bring SDL to iPhone and iPod Touch by Holmes Futrell, mentored by Sam Lantinga
author Sam Lantinga <slouken@libsdl.org>
date Sat, 04 Oct 2008 06:46:59 +0000
parents 204be4fc2726
children 5651642f4a78
line wrap: on
line diff
--- a/src/SDL_compat.c	Wed Sep 17 08:24:51 2008 +0000
+++ b/src/SDL_compat.c	Sat Oct 04 06:46:59 2008 +0000
@@ -521,15 +521,19 @@
     SDL_VideoTexture =
         SDL_CreateTexture(desired_format, SDL_TEXTUREACCESS_STREAMING, width,
                           height);
+
     if (!SDL_VideoTexture) {
         SDL_VideoTexture =
-            SDL_CreateTexture(SDL_PIXELFORMAT_RGB888,
+            SDL_CreateTexture(SDL_PIXELFORMAT_ABGR8888,
                               SDL_TEXTUREACCESS_STREAMING, width, height);
     }
     if (!SDL_VideoTexture) {
         return NULL;
     }
 
+    SDL_SetTextureBlendMode(SDL_VideoTexture, SDL_TEXTUREBLENDMODE_NONE);
+
+
     /* Create the screen surface */
     SDL_VideoSurface = CreateVideoSurface(SDL_VideoTexture);
     if (!SDL_VideoSurface) {