From 55689229e1444f8d39d8f4ac13776371b52ed3b3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Mar 2020 12:32:15 +0100 Subject: 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. --- pugl/detail/x11_gl.c | 7 ++++--- 1 file 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 #include +#include #include #include @@ -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) -- cgit v1.2.1