Oops, we only want to fail creation if the display surface is an OpenGL surface.
authorSam Lantinga <slouken@libsdl.org>
Wed, 31 Dec 2003 04:48:38 +0000
changeset 760 cf9dd3aa6756
parent 759 26ac9609211f
child 761 c5b2b6d2d1fe
Oops, we only want to fail creation if the display surface is an OpenGL surface.
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;
 	}