From 6e649591d9595f5b3294b4555d23d0e6b9e8c80c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 6 Nov 2014 01:45:35 +0100 Subject: [PATCH] Revert "(GLX) Remove a global and a reinvented typedef." This reverts commit cb1b7695cbd106bbb969117e72b4ccd430e3e668. --- gfx/context/glx_ctx.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gfx/context/glx_ctx.c b/gfx/context/glx_ctx.c index 82131c43b7..c2b03c28ca 100644 --- a/gfx/context/glx_ctx.c +++ b/gfx/context/glx_ctx.c @@ -28,6 +28,9 @@ #include #include +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;