Mercurial > sdl-ios-xcode
changeset 760:cf9dd3aa6756
Oops, we only want to fail creation if the display surface is an OpenGL surface.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 31 Dec 2003 04:48:38 +0000 |
parents | 26ac9609211f |
children | c5b2b6d2d1fe |
files | src/video/SDL_yuv.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/SDL_yuv.c Mon Dec 22 01:21:20 2003 +0000 +++ b/src/video/SDL_yuv.c Wed Dec 31 04:48:38 2003 +0000 @@ -46,7 +46,7 @@ const char *yuv_hwaccel; SDL_Overlay *overlay; - if ( (SDL_VideoSurface->flags & SDL_OPENGL) == SDL_OPENGL ) { + if ( (display->flags & SDL_OPENGL) == SDL_OPENGL ) { SDL_SetError("YUV overlays are not supported in OpenGL mode"); return NULL; }