Mercurial > sdl-ios-xcode
diff src/video/wincommon/SDL_wingl.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 | c0a74f199ecf |
line wrap: on
line diff
--- a/src/video/wincommon/SDL_wingl.c Fri Feb 10 07:29:08 2006 +0000 +++ b/src/video/wincommon/SDL_wingl.c Thu Feb 16 10:11:48 2006 +0000 @@ -22,13 +22,13 @@ /* WGL implementation of SDL OpenGL support */ -#ifdef HAVE_OPENGL +#if SDL_VIDEO_OPENGL #include "SDL_opengl.h" #endif #include "SDL_lowvideo.h" #include "SDL_wingl_c.h" -#ifdef HAVE_OPENGL +#if SDL_VIDEO_OPENGL #define DEFAULT_GL_DRIVER_PATH "OPENGL32.DLL" #endif @@ -69,7 +69,7 @@ return(status); } -#ifdef HAVE_OPENGL +#if SDL_VIDEO_OPENGL static int ExtensionSupported(const char *extension, const char *extensions) { @@ -159,12 +159,12 @@ DestroyWindow(hwnd); } -#endif /* HAVE_OPENGL */ +#endif /* SDL_VIDEO_OPENGL */ int WIN_GL_SetupWindow(_THIS) { int retval; -#ifdef HAVE_OPENGL +#if SDL_VIDEO_OPENGL int i; unsigned int matching; int iAttribs[64]; @@ -330,7 +330,7 @@ void WIN_GL_ShutDown(_THIS) { -#ifdef HAVE_OPENGL +#if SDL_VIDEO_OPENGL /* Clean up OpenGL */ if ( GL_hrc ) { this->gl_data->wglMakeCurrent(NULL, NULL); @@ -344,10 +344,10 @@ gl_active = 0; WIN_GL_UnloadLibrary(this); -#endif /* HAVE_OPENGL */ +#endif /* SDL_VIDEO_OPENGL */ } -#ifdef HAVE_OPENGL +#if SDL_VIDEO_OPENGL /* Make the current context active */ int WIN_GL_MakeCurrent(_THIS) @@ -569,4 +569,4 @@ return func; } -#endif /* HAVE_OPENGL */ +#endif /* SDL_VIDEO_OPENGL */