Mercurial > sdl-ios-xcode
diff src/video/SDL_yuv.c @ 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 | 73440ac574a2 |
children | b8d311d90021 |
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; }