diff options
author | David Robillard <d@drobilla.net> | 2020-03-08 12:32:15 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-03-08 14:40:51 +0100 |
commit | 55689229e1444f8d39d8f4ac13776371b52ed3b3 (patch) | |
tree | 07bc5d01f7c3d7924e4c2df76d3d5a7b5e1bd422 /pugl/detail | |
parent | 083cd9da9f1207d834e525af7dfea7503cb85359 (diff) | |
download | pugl-55689229e1444f8d39d8f4ac13776371b52ed3b3.tar.gz pugl-55689229e1444f8d39d8f4ac13776371b52ed3b3.tar.bz2 pugl-55689229e1444f8d39d8f4ac13776371b52ed3b3.zip |
Cleanup: Remove use of GL defines in X11 backend
These are equivalent anyway, but this avoids include-what-you-use warnings and
makes it clear that there is no GL code in the backend.
Diffstat (limited to 'pugl/detail')
-rw-r--r-- | pugl/detail/x11_gl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pugl/detail/x11_gl.c b/pugl/detail/x11_gl.c index 7bb1517..77bc84b 100644 --- a/pugl/detail/x11_gl.c +++ b/pugl/detail/x11_gl.c @@ -29,6 +29,7 @@ #include <X11/Xlib.h> #include <X11/Xutil.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> @@ -131,9 +132,9 @@ puglX11GlCreate(PuglView* view) CreateContextAttribs create_context = (CreateContextAttribs)glXGetProcAddress( - (const GLubyte*)"glXCreateContextAttribsARB"); + (const uint8_t*)"glXCreateContextAttribsARB"); - surface->ctx = create_context(display, fb_config, 0, GL_TRUE, ctx_attrs); + surface->ctx = create_context(display, fb_config, 0, True, ctx_attrs); if (!surface->ctx) { surface->ctx = glXCreateNewContext(display, fb_config, GLX_RGBA_TYPE, 0, True); @@ -188,7 +189,7 @@ puglX11GlLeave(PuglView* view, const PuglEventExpose* expose) PuglGlFunc puglGetProcAddress(const char* name) { - return glXGetProcAddress((const GLubyte*)name); + return glXGetProcAddress((const uint8_t*)name); } const PuglBackend* puglGlBackend(void) |