aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: