Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11video.c @ 1952:420716272158
Implemented X11 OpenGL support.
Added support for the SDL_VIDEO_OPENGL environment variable.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 28 Jul 2006 08:43:17 +0000 |
parents | 7177581dc9fa |
children | 1d23870d8c49 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11video.c Thu Jul 27 06:53:23 2006 +0000 +++ b/src/video/x11/SDL_x11video.c Fri Jul 28 08:43:17 2006 +0000 @@ -186,8 +186,7 @@ device->SetWindowGrab = X11_SetWindowGrab; device->DestroyWindow = X11_DestroyWindow; device->GetWindowWMInfo = X11_GetWindowWMInfo; -/* -#ifdef SDL_VIDEO_OPENGL +#ifdef SDL_VIDEO_OPENGL_GLX device->GL_LoadLibrary = X11_GL_LoadLibrary; device->GL_GetProcAddress = X11_GL_GetProcAddress; device->GL_CreateContext = X11_GL_CreateContext; @@ -197,7 +196,6 @@ device->GL_SwapWindow = X11_GL_SwapWindow; device->GL_DeleteContext = X11_GL_DeleteContext; #endif -*/ device->free = X11_DeleteDevice;