From c0ae66426fce6268cc12619d485c9a40688e28e9 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Thu, 10 Jun 2010 12:03:37 -0400 Subject: [PATCH] Add a really sketchy glGetError() test --- openbox/composite.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openbox/composite.c b/openbox/composite.c index e68ac24c..6bbd2467 100644 --- a/openbox/composite.c +++ b/openbox/composite.c @@ -378,6 +378,11 @@ time_fix(&dif); } glXSwapBuffers(obt_display, obcomp.overlay); glFinish(); + GLenum gler; + while ((gler = glGetError()) != GL_NO_ERROR) { + printf("gl error %d\n", gler); + } + obcomp.need_redraw = 0; #endif return TRUE; -- 2.34.1