# HG changeset patch # User Sam Lantinga # Date 1072846118 0 # Node ID cf9dd3aa6756a7e92f741e5f7c521437ac671e58 # Parent 26ac9609211f389ff6c0a25945d00d06795e51fc Oops, we only want to fail creation if the display surface is an OpenGL surface. diff -r 26ac9609211f -r cf9dd3aa6756 src/video/SDL_yuv.c --- 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; }