From 519a7c2cfb7286f07d1d50d16626a326234a281a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Mar 2020 18:27:48 +0100 Subject: X11: Use function typedefs in glxext.h --- pugl/detail/x11_gl.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'pugl/detail') diff --git a/pugl/detail/x11_gl.c b/pugl/detail/x11_gl.c index 77bc84b..f8ff5ed 100644 --- a/pugl/detail/x11_gl.c +++ b/pugl/detail/x11_gl.c @@ -25,6 +25,7 @@ #include "pugl/pugl_stub.h" #include +#include #include #include #include @@ -127,12 +128,9 @@ puglX11GlCreate(PuglView* view) : GLX_CONTEXT_CORE_PROFILE_BIT_ARB), 0}; - typedef GLXContext (*CreateContextAttribs)( - Display*, GLXFBConfig, GLXContext, Bool, const int*); - - CreateContextAttribs create_context = - (CreateContextAttribs)glXGetProcAddress( - (const uint8_t*)"glXCreateContextAttribsARB"); + PFNGLXCREATECONTEXTATTRIBSARBPROC create_context = + (PFNGLXCREATECONTEXTATTRIBSARBPROC)glXGetProcAddress( + (const uint8_t*)"glXCreateContextAttribsARB"); surface->ctx = create_context(display, fb_config, 0, True, ctx_attrs); if (!surface->ctx) { -- cgit v1.2.1