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:
parent
d2d5573ee4
commit
88753d4f2e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue