mirror of
https://github.com/yawut/SDL.git
synced 2026-08-24 01:35:39 -05:00
Oops, we only want to fail creation if the display surface is an OpenGL surface.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user