Oops, we only want to fail creation if the display surface is an OpenGL surface.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40761
This commit is contained in:
Sam Lantinga 2003-12-31 04:48:38 +00:00
parent d2d5573ee4
commit 88753d4f2e

View file

@ -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;
}