aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-11-20 20:05:43 +0100
committerDavid Robillard <d@drobilla.net>2019-11-21 00:03:47 +0100
commit762c9c65f12b1cdd8f74c96683bb2a670ccdee5d (patch)
treeb1dfe362ade3373214b3b3c5bb4f5dbd730c19fd
parent2d1131ea819934e656cb4e17d00a781d5461a551 (diff)
X11: Remove libGL dependency from GL backend
This was the only use of actual GL in the backend, and I'm relatively sure this flush is pointless anyway. If, for some bizarre reason, anyone really wants to run without double buffers, they are always free to flush themselves.
-rw-r--r--pugl/detail/x11_gl.c3
-rw-r--r--wscript2
2 files changed, 1 insertions, 4 deletions
diff --git a/pugl/detail/x11_gl.c b/pugl/detail/x11_gl.c
index d64916b..a881510 100644
--- a/pugl/detail/x11_gl.c
+++ b/pugl/detail/x11_gl.c
@@ -24,7 +24,6 @@
#include "pugl/pugl_gl_backend.h"
#include "pugl/pugl_stub_backend.h"
-#include <GL/gl.h>
#include <GL/glx.h>
#include <X11/X.h>
#include <X11/Xlib.h>
@@ -180,8 +179,6 @@ puglX11GlLeave(PuglView* view, bool drawing)
if (drawing && surface->double_buffered) {
glXSwapBuffers(view->impl->display, view->impl->win);
- } else if (drawing) {
- glFlush();
}
glXMakeCurrent(view->impl->display, None, NULL);
diff --git a/wscript b/wscript
index 23983ee..a1a317f 100644
--- a/wscript
+++ b/wscript
@@ -240,7 +240,7 @@ def build(bld):
if bld.env.HAVE_GL:
build_backend('x11', 'gl',
- uselib=['GL', 'GLX', 'X11'],
+ uselib=['GLX', 'X11'],
source=['pugl/detail/x11_gl.c'])
if bld.env.HAVE_CAIRO: