From 762c9c65f12b1cdd8f74c96683bb2a670ccdee5d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 20 Nov 2019 20:05:43 +0100 Subject: 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. --- pugl/detail/x11_gl.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'pugl') 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 #include #include #include @@ -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); -- cgit v1.2.1