diff src/video/SDL_video.c @ 266:c6abdda2f666

Added QNX cleanups by Mike Gorchak (thanks!)
author Sam Lantinga <slouken@libsdl.org>
date Fri, 18 Jan 2002 18:14:03 +0000
parents e8157fcb3114
children c5010ab8ba35
line wrap: on
line diff
--- a/src/video/SDL_video.c	Fri Jan 18 17:14:16 2002 +0000
+++ b/src/video/SDL_video.c	Fri Jan 18 18:14:03 2002 +0000
@@ -1391,7 +1391,9 @@
 	SDL_VideoDevice *this = current_video;
 
 	if ( video->screen->flags & SDL_OPENGL ) {
-		video->GL_SwapBuffers( this );
+		video->GL_SwapBuffers(this);
+	} else {
+		SDL_SetError("OpenGL video mode has not been set");
 	}
 }