Commit 88753d4f authored by Sam Lantinga's avatar Sam Lantinga

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
parent d2d5573e
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment