aboutsummaryrefslogtreecommitdiffstats
path: root/pugl
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 /pugl
parent2d1131ea819934e656cb4e17d00a781d5461a551 (diff)
downloadpugl-762c9c65f12b1cdd8f74c96683bb2a670ccdee5d.tar.gz
pugl-762c9c65f12b1cdd8f74c96683bb2a670ccdee5d.tar.bz2
pugl-762c9c65f12b1cdd8f74c96683bb2a670ccdee5d.zip
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.
Diffstat (limited to 'pugl')
-rw-r--r--pugl/detail/x11_gl.c3
1 files changed, 0 insertions, 3 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);