src/video/SDL_yuv.c
changeset 760 cf9dd3aa6756
parent 660 73440ac574a2
child 769 b8d311d90021
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 */