diff --git a/gfx/context/glx_ctx.c b/gfx/context/glx_ctx.c index 82131c43b7..c2aaeb1071 100644 --- a/gfx/context/glx_ctx.c +++ b/gfx/context/glx_ctx.c @@ -65,7 +65,7 @@ static volatile sig_atomic_t g_quit; static unsigned g_major; static unsigned g_minor; -static PFNGLXCREATECONTEXTATTRIBSARB glx_create_context_attribs; +static PFNGLXCREATECONTEXTATTRIBSARBPROC glx_create_context_attribs; static void sighandler(int sig) { @@ -346,7 +346,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 = (PFNGLXCREATECONTEXTATTRIBSARBPROC)glXGetProcAddress((const GLubyte*)"glXCreateContextAttribsARB"); #ifdef GL_DEBUG glx->g_debug = true;