src/video/SDL_video.c
changeset 1491 cf23b92602aa
parent 1428 5f52867ba65c
child 1545 8d9bb0cf2c2a
     1.1 --- a/src/video/SDL_video.c	Thu Mar 09 15:11:15 2006 +0000
     1.2 +++ b/src/video/SDL_video.c	Thu Mar 09 16:12:34 2006 +0000
     1.3 @@ -1008,6 +1008,10 @@
     1.4  	SDL_VideoDevice *video = current_video;
     1.5  	SDL_VideoDevice *this = current_video;
     1.6  
     1.7 +	if ( (screen->flags & (SDL_OPENGL | SDL_OPENGLBLIT)) == SDL_OPENGL ) {
     1.8 +		SDL_SetError("OpenGL active, use SDL_GL_SwapBuffers()");
     1.9 +		return;
    1.10 +	}
    1.11  	if ( screen == SDL_ShadowSurface ) {
    1.12  		/* Blit the shadow surface using saved mapping */
    1.13  		SDL_Palette *pal = screen->format->palette;