Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_gdirender.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/win32/SDL_gdirender.c Mon Nov 24 21:43:02 2008 +0000 +++ b/src/video/win32/SDL_gdirender.c Mon Nov 24 23:25:36 2008 +0000 @@ -294,7 +294,7 @@ texture->driverdata = data; if (SDL_ISPIXELFORMAT_FOURCC(texture->format)) { - data->yuv = SDL_SW_CreateYUVTexture(texture); + data->yuv = SDL_SW_CreateYUVTexture(texture->format, texture->w, texture->h); if (!data->yuv) { return -1; }