diff src/video/maccommon/SDL_macgl.c @ 1361:19418e4422cb

New configure-based build system. Still work in progress, but much improved
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Feb 2006 10:11:48 +0000
parents c71e05b4dc2e
children d910939febfa
line wrap: on
line diff
--- a/src/video/maccommon/SDL_macgl.c	Fri Feb 10 07:29:08 2006 +0000
+++ b/src/video/maccommon/SDL_macgl.c	Thu Feb 16 10:11:48 2006 +0000
@@ -30,7 +30,7 @@
 /* krat: adding OpenGL support */
 int Mac_GL_Init(_THIS)
 {
-#ifdef HAVE_OPENGL
+#if SDL_VIDEO_OPENGL
 	AGLPixelFormat format;
    	int i = 0;
 	GLint attributes [ 24 ]; /* 24 is max possible in this setup */
@@ -121,7 +121,7 @@
 
 void Mac_GL_Quit(_THIS)
 {
-#ifdef HAVE_OPENGL
+#if SDL_VIDEO_OPENGL
 	if ( glContext != NULL ) {
 		aglSetCurrentContext(NULL);
 		aglSetDrawable(glContext, NULL);
@@ -131,7 +131,7 @@
 #endif
 }
 
-#ifdef HAVE_OPENGL
+#if SDL_VIDEO_OPENGL
 
 /* Make the current context active */
 int Mac_GL_MakeCurrent(_THIS)
@@ -175,5 +175,5 @@
 	return SDL_LoadFunction( this->hidden->libraryHandle, proc );
 }
 
-#endif /* HAVE_OPENGL */
+#endif /* SDL_VIDEO_OPENGL */