src/video/SDL_video.c
changeset 266 c6abdda2f666
parent 252 e8157fcb3114
child 281 c5010ab8ba35
     1.1 --- a/src/video/SDL_video.c	Fri Jan 18 17:14:16 2002 +0000
     1.2 +++ b/src/video/SDL_video.c	Fri Jan 18 18:14:03 2002 +0000
     1.3 @@ -1391,7 +1391,9 @@
     1.4  	SDL_VideoDevice *this = current_video;
     1.5  
     1.6  	if ( video->screen->flags & SDL_OPENGL ) {
     1.7 -		video->GL_SwapBuffers( this );
     1.8 +		video->GL_SwapBuffers(this);
     1.9 +	} else {
    1.10 +		SDL_SetError("OpenGL video mode has not been set");
    1.11  	}
    1.12  }
    1.13