comparison 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
comparison
equal deleted inserted replaced
759:26ac9609211f 760:cf9dd3aa6756
44 SDL_VideoDevice *video = current_video; 44 SDL_VideoDevice *video = current_video;
45 SDL_VideoDevice *this = current_video; 45 SDL_VideoDevice *this = current_video;
46 const char *yuv_hwaccel; 46 const char *yuv_hwaccel;
47 SDL_Overlay *overlay; 47 SDL_Overlay *overlay;
48 48
49 if ( (SDL_VideoSurface->flags & SDL_OPENGL) == SDL_OPENGL ) { 49 if ( (display->flags & SDL_OPENGL) == SDL_OPENGL ) {
50 SDL_SetError("YUV overlays are not supported in OpenGL mode"); 50 SDL_SetError("YUV overlays are not supported in OpenGL mode");
51 return NULL; 51 return NULL;
52 } 52 }
53 53
54 /* Display directly on video surface, if possible */ 54 /* Display directly on video surface, if possible */