Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11video.c @ 1191:2bd4cec0de63
Seperate glX from HAVE_OPENGL, for platforms that have both an X server and
a more official way to do OpenGL, explicitly check for glX on Mac OS X, and
use SDL_LoadObject for platforms that have glX but don't have dlopen().
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 23 Nov 2005 11:46:36 +0000 |
parents | 9867f3d86e44 |
children | aac47040c6d7 |
comparison
equal
deleted
inserted
replaced
1190:173c063d4f55 | 1191:2bd4cec0de63 |
---|---|
164 device->FreeHWSurface = X11_FreeHWSurface; | 164 device->FreeHWSurface = X11_FreeHWSurface; |
165 device->SetGamma = X11_SetVidModeGamma; | 165 device->SetGamma = X11_SetVidModeGamma; |
166 device->GetGamma = X11_GetVidModeGamma; | 166 device->GetGamma = X11_GetVidModeGamma; |
167 device->SetGammaRamp = X11_SetGammaRamp; | 167 device->SetGammaRamp = X11_SetGammaRamp; |
168 device->GetGammaRamp = NULL; | 168 device->GetGammaRamp = NULL; |
169 #ifdef HAVE_OPENGL | 169 #ifdef HAVE_OPENGL_X11 |
170 device->GL_LoadLibrary = X11_GL_LoadLibrary; | 170 device->GL_LoadLibrary = X11_GL_LoadLibrary; |
171 device->GL_GetProcAddress = X11_GL_GetProcAddress; | 171 device->GL_GetProcAddress = X11_GL_GetProcAddress; |
172 device->GL_GetAttribute = X11_GL_GetAttribute; | 172 device->GL_GetAttribute = X11_GL_GetAttribute; |
173 device->GL_MakeCurrent = X11_GL_MakeCurrent; | 173 device->GL_MakeCurrent = X11_GL_MakeCurrent; |
174 device->GL_SwapBuffers = X11_GL_SwapBuffers; | 174 device->GL_SwapBuffers = X11_GL_SwapBuffers; |