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 760cf9dd3aa6756
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
     1.1 --- a/src/video/SDL_yuv.c	Mon Dec 22 01:21:20 2003 +0000
     1.2 +++ b/src/video/SDL_yuv.c	Wed Dec 31 04:48:38 2003 +0000
     1.3 @@ -46,7 +46,7 @@
     1.4  	const char *yuv_hwaccel;
     1.5  	SDL_Overlay *overlay;
     1.6  
     1.7 -	if ( (SDL_VideoSurface->flags & SDL_OPENGL) == SDL_OPENGL ) {
     1.8 +	if ( (display->flags & SDL_OPENGL) == SDL_OPENGL ) {
     1.9  		SDL_SetError("YUV overlays are not supported in OpenGL mode");
    1.10  		return NULL;
    1.11  	}