diff options
-rw-r--r-- | pugl/detail/x11_gl.c | 3 | ||||
-rw-r--r-- | wscript | 2 |
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); @@ -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: |