diff src/video/windib/SDL_dibvideo.c @ 1658:e49147870aac SDL-1.3

glSDL support
author Sam Lantinga <slouken@libsdl.org>
date Mon, 01 May 2006 06:58:33 +0000
parents 8d9bb0cf2c2a
children 14717b52abc0
line wrap: on
line diff
--- a/src/video/windib/SDL_dibvideo.c	Fri Apr 28 16:55:41 2006 +0000
+++ b/src/video/windib/SDL_dibvideo.c	Mon May 01 06:58:33 2006 +0000
@@ -484,7 +484,7 @@
 	Uint32 Rmask, Gmask, Bmask;
 
 	/* Clean up any GL context that may be hanging around */
-	if ( current->flags & SDL_OPENGL ) {
+	if ( current->flags & SDL_INTERNALOPENGL ) {
 		WIN_GL_ShutDown(this);
 	}
 	SDL_resizing = 1;
@@ -686,7 +686,7 @@
 	if ( screen_bmp != NULL ) {
 		DeleteObject(screen_bmp);
 	}
-	if ( ! (flags & SDL_OPENGL) ) {
+	if ( ! (flags & SDL_INTERNALOPENGL) ) {
 		BOOL is16bitmode = (video->format->BytesPerPixel == 2);
 
 		/* Suss out the bitmap info header */
@@ -814,11 +814,11 @@
 	SDL_resizing = 0;
 
 	/* Set up for OpenGL */
-	if ( flags & SDL_OPENGL ) {
+	if ( flags & SDL_INTERNALOPENGL ) {
 		if ( WIN_GL_SetupWindow(this) < 0 ) {
 			return(NULL);
 		}
-		video->flags |= SDL_OPENGL;
+		video->flags |= SDL_INTERNALOPENGL;
 	}
 
 	/* JC 14 Mar 2006
@@ -1035,7 +1035,7 @@
 				ShowWindow(SDL_Window, SW_HIDE);
 			}
 #endif
-			if ( this->screen->flags & SDL_OPENGL ) {
+			if ( this->screen->flags & SDL_INTERNALOPENGL ) {
 				WIN_GL_ShutDown(this);
 			}
 			this->screen->pixels = NULL;