src/video/SDL_video.c
changeset 216 e2a10730ae94
parent 173 83018110dce8
child 229 4d24d5a660a8
     1.1 --- a/src/video/SDL_video.c	Thu Oct 25 06:08:18 2001 +0000
     1.2 +++ b/src/video/SDL_video.c	Thu Oct 25 06:22:38 2001 +0000
     1.3 @@ -616,6 +616,10 @@
     1.4  	if ( mode ) { /* Prevent resize events from mode change */
     1.5  	    SDL_PrivateResize(mode->w, mode->h);
     1.6          }
     1.7 +	/* Sam - If we asked for an OpenGL mode, but didn't get it, fail */
     1.8 +	if ( is_opengl && !(mode->flags & SDL_OPENGL) ) {
     1.9 +		mode = NULL;
    1.10 +	}
    1.11  	/*
    1.12  	 * rcg11292000
    1.13  	 * If you try to set an SDL_OPENGL surface, and fail to find a