From: Derek Foreman Date: Thu, 10 Jun 2010 16:03:37 +0000 (-0400) Subject: Add a really sketchy glGetError() test X-Git-Tag: cgl~57 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=c0ae66426fce6268cc12619d485c9a40688e28e9;p=dana%2Fopenbox.git Add a really sketchy glGetError() test --- 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;