From 0db9408c37bd49d9c93bdd979539203345525166 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 31 Dec 2003 04:48:38 +0000 Subject: [PATCH] Oops, we only want to fail creation if the display surface is an OpenGL surface. --- src/video/SDL_yuv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_yuv.c b/src/video/SDL_yuv.c index 63ea57bbc..3291c581e 100644 --- a/src/video/SDL_yuv.c +++ b/src/video/SDL_yuv.c @@ -46,7 +46,7 @@ SDL_Overlay *SDL_CreateYUVOverlay(int w, int h, Uint32 format, 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; }