Mercurial > sdl-ios-xcode
diff src/video/cybergfx/SDL_cgxgl.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/cybergfx/SDL_cgxgl.c Fri Feb 10 07:29:08 2006 +0000 +++ b/src/video/cybergfx/SDL_cgxgl.c Thu Feb 16 10:11:48 2006 +0000 @@ -25,14 +25,14 @@ #include "SDL_cgxgl_c.h" #include "SDL_cgxvideo.h" -#ifdef HAVE_OPENGL +#if SDL_VIDEO_OPENGL AmigaMesaContext glcont=NULL; #endif /* Init OpenGL */ int CGX_GL_Init(_THIS) { -#ifdef HAVE_OPENGL +#if SDL_VIDEO_OPENGL int i = 0; struct TagItem attributes [ 14 ]; /* 14 should be more than enough :) */ struct Window *win = (struct Window *)SDL_Window; @@ -101,7 +101,7 @@ /* Quit OpenGL */ void CGX_GL_Quit(_THIS) { -#ifdef HAVE_OPENGL +#if SDL_VIDEO_OPENGL if ( glcont != NULL ) { AmigaMesaDestroyContext(glcont); glcont = NULL; @@ -114,7 +114,7 @@ /* Attach context to another window */ int CGX_GL_Update(_THIS) { -#ifdef HAVE_OPENGL +#if SDL_VIDEO_OPENGL struct TagItem tags[2]; struct Window *win = (struct Window*)SDL_Window; if(glcont == NULL) { @@ -132,7 +132,7 @@ #endif } -#ifdef HAVE_OPENGL +#if SDL_VIDEO_OPENGL /* Make the current context active */ int CGX_GL_MakeCurrent(_THIS) @@ -207,5 +207,5 @@ return 0; } -#endif /* HAVE_OPENGL */ +#endif /* SDL_VIDEO_OPENGL */