aboutsummaryrefslogtreecommitdiffstats
path: root/pugl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-08 18:27:48 +0100
committerDavid Robillard <d@drobilla.net>2020-03-08 18:27:48 +0100
commit519a7c2cfb7286f07d1d50d16626a326234a281a (patch)
tree5a2cc5a6b1b0399a0c4b37a82258bd0cc0f4e82a /pugl
parentaa5b95bf0677908709667683b0449365067c0712 (diff)
downloadpugl-519a7c2cfb7286f07d1d50d16626a326234a281a.tar.gz
pugl-519a7c2cfb7286f07d1d50d16626a326234a281a.tar.bz2
pugl-519a7c2cfb7286f07d1d50d16626a326234a281a.zip
X11: Use function typedefs in glxext.h
Diffstat (limited to 'pugl')
-rw-r--r--pugl/detail/x11_gl.c10
1 files changed, 4 insertions, 6 deletions
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 <GL/glx.h>
+#include <GL/glxext.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@@ -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) {