Revert "(GLX) Remove a global and a reinvented typedef."

This reverts commit cb1b7695cb.
This commit is contained in:
twinaphex 2014-11-06 01:45:35 +01:00
parent cb1b7695cb
commit 6e649591d9

View File

@ -28,6 +28,9 @@
#include <X11/Xutil.h>
#include <GL/glx.h>
typedef GLXContext (*glXCreateContextAttribsARBProc)(Display*,
GLXFBConfig, GLXContext, Bool, const int*);
static int (*g_pglSwapInterval)(int);
static void (*g_pglSwapIntervalEXT)(Display*, GLXDrawable, int);
@ -65,7 +68,7 @@ static volatile sig_atomic_t g_quit;
static unsigned g_major;
static unsigned g_minor;
static PFNGLXCREATECONTEXTATTRIBSARB glx_create_context_attribs;
glXCreateContextAttribsARBProc glx_create_context_attribs;
static void sighandler(int sig)
{
@ -346,7 +349,7 @@ static bool gfx_ctx_glx_init(void *data)
if ((major * 1000 + minor) < 1003)
goto error;
glx_create_context_attribs = (PFNGLXCREATECONTEXTATTRIBSARB)glXGetProcAddress((const GLubyte*)"glXCreateContextAttribsARB");
glx_create_context_attribs = (glXCreateContextAttribsARBProc)glXGetProcAddress((const GLubyte*)"glXCreateContextAttribsARB");
#ifdef GL_DEBUG
glx->g_debug = true;