Mercurial > sdl-ios-xcode
diff src/video/SDL_renderer_sw.c @ 2781:5651642f4a78
Added software fallback for YUV overlay code when YUV textures aren't available.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 24 Nov 2008 23:25:36 +0000 |
parents | 204be4fc2726 |
children | 6bacfecbf27e |
line wrap: on
line diff
--- a/src/video/SDL_renderer_sw.c Mon Nov 24 21:43:02 2008 +0000 +++ b/src/video/SDL_renderer_sw.c Mon Nov 24 23:25:36 2008 +0000 @@ -361,7 +361,7 @@ SW_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture) { if (SDL_ISPIXELFORMAT_FOURCC(texture->format)) { - texture->driverdata = SDL_SW_CreateYUVTexture(texture); + texture->driverdata = SDL_SW_CreateYUVTexture(texture->format, texture->w, texture->h); } else { int bpp; Uint32 Rmask, Gmask, Bmask, Amask;