equal
deleted
inserted
replaced
62 #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 |
62 #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 |
63 #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 |
63 #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 |
64 #define GLX_CONTEXT_FLAGS_ARB 0x2094 |
64 #define GLX_CONTEXT_FLAGS_ARB 0x2094 |
65 #define GLX_CONTEXT_DEBUG_BIT_ARB 0x0001 |
65 #define GLX_CONTEXT_DEBUG_BIT_ARB 0x0001 |
66 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 |
66 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 |
|
67 |
|
68 /* Typedef for the GL 3.0 context creation function */ |
|
69 typedef GLXContext(*PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display * dpy, |
|
70 GLXFBConfig config, |
|
71 GLXContext |
|
72 share_context, |
|
73 Bool direct, |
|
74 const int |
|
75 *attrib_list); |
67 #endif |
76 #endif |
68 |
77 |
69 #define OPENGL_REQUIRS_DLOPEN |
78 #define OPENGL_REQUIRS_DLOPEN |
70 #if defined(OPENGL_REQUIRS_DLOPEN) && defined(SDL_LOADSO_DLOPEN) |
79 #if defined(OPENGL_REQUIRS_DLOPEN) && defined(SDL_LOADSO_DLOPEN) |
71 #include <dlfcn.h> |
80 #include <dlfcn.h> |
78 #define GL_UnloadObject SDL_UnloadObject |
87 #define GL_UnloadObject SDL_UnloadObject |
79 #endif |
88 #endif |
80 |
89 |
81 static void X11_GL_InitExtensions(_THIS); |
90 static void X11_GL_InitExtensions(_THIS); |
82 |
91 |
83 /* Typedef for the GL 3.0 context creation function */ |
|
84 #ifndef GLX_ARB_create_context |
|
85 typedef GLXContext(*PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display * dpy, |
|
86 GLXFBConfig config, |
|
87 GLXContext |
|
88 share_context, |
|
89 Bool direct, |
|
90 const int |
|
91 *attrib_list); |
|
92 #endif /* GLX_ARB_create_context */ |
|
93 |
92 |
94 int |
93 int |
95 X11_GL_LoadLibrary(_THIS, const char *path) |
94 X11_GL_LoadLibrary(_THIS, const char *path) |
96 { |
95 { |
97 void *handle; |
96 void *handle; |