Skip to content

Commit

Permalink
Oops, we only want to fail creation if the display surface is an Open…
Browse files Browse the repository at this point in the history
…GL surface.
  • Loading branch information
slouken committed Dec 31, 2003
1 parent 0eb3525 commit 0db9408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_yuv.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0db9408

Please sign in to comment.