Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
2780:cc15254e44b6 | 2781:5651642f4a78 |
---|---|
292 } | 292 } |
293 | 293 |
294 texture->driverdata = data; | 294 texture->driverdata = data; |
295 | 295 |
296 if (SDL_ISPIXELFORMAT_FOURCC(texture->format)) { | 296 if (SDL_ISPIXELFORMAT_FOURCC(texture->format)) { |
297 data->yuv = SDL_SW_CreateYUVTexture(texture); | 297 data->yuv = SDL_SW_CreateYUVTexture(texture->format, texture->w, texture->h); |
298 if (!data->yuv) { | 298 if (!data->yuv) { |
299 return -1; | 299 return -1; |
300 } | 300 } |
301 data->format = display->current_mode.format; | 301 data->format = display->current_mode.format; |
302 } else { | 302 } else { |