Changed format of video texture to something compatible with iPhone ... a better solution is probably needed. Also set blending mode of video texture to none. gsoc2008_iphone
authorHolmes Futrell <hfutrell@umail.ucsb.edu>
Fri, 18 Jul 2008 18:45:36 +0000
branchgsoc2008_iphone
changeset 23713eb72191bb7e
parent 2370 73d04b25c118
child 2372 06d986e73eb0
Changed format of video texture to something compatible with iPhone ... a better solution is probably needed. Also set blending mode of video texture to none.
src/SDL_compat.c
     1.1 --- a/src/SDL_compat.c	Fri Jul 18 18:41:08 2008 +0000
     1.2 +++ b/src/SDL_compat.c	Fri Jul 18 18:45:36 2008 +0000
     1.3 @@ -521,14 +521,18 @@
     1.4      SDL_VideoTexture =
     1.5          SDL_CreateTexture(desired_format, SDL_TEXTUREACCESS_STREAMING, width,
     1.6                            height);
     1.7 +		
     1.8      if (!SDL_VideoTexture) {
     1.9          SDL_VideoTexture =
    1.10 -            SDL_CreateTexture(SDL_PIXELFORMAT_RGB888,
    1.11 +            SDL_CreateTexture(SDL_PIXELFORMAT_ABGR8888,
    1.12                                SDL_TEXTUREACCESS_STREAMING, width, height);
    1.13      }
    1.14      if (!SDL_VideoTexture) {
    1.15          return NULL;
    1.16      }
    1.17 +	
    1.18 +	SDL_SetTextureBlendMode(SDL_VideoTexture, SDL_TEXTUREBLENDMODE_NONE);
    1.19 +
    1.20  
    1.21      /* Create the screen surface */
    1.22      SDL_VideoSurface = CreateVideoSurface(SDL_VideoTexture);