diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 6c95b1fdc..a9470b35a 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -1134,6 +1134,9 @@ int SDL_SetPalette(SDL_Surface *screen, int which, int gotall; int palsize; + if ( ! current_video ) { + return 0; + } if ( screen != SDL_PublicSurface ) { /* only screens have physical palettes */ which &= ~SDL_PHYSPAL;