From bc2395e659081356079688ba74e8db266d8a802e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 13 Oct 2009 03:39:00 +0000 Subject: Some GL test fixes. --- tests/libdimension/tests.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/libdimension/tests.c b/tests/libdimension/tests.c index f8c02de..56a0368 100644 --- a/tests/libdimension/tests.c +++ b/tests/libdimension/tests.c @@ -232,6 +232,9 @@ dmnsn_new_display(const dmnsn_canvas *canvas) /* Connect the context to the window */ glXMakeCurrent(display->dpy, display->win, display->cx); + glClearColor(0.0, 0.0, 0.0, 1.0); + glClear(GL_COLOR_BUFFER_BIT); + dmnsn_display_flush(display); return display; } @@ -251,7 +254,7 @@ dmnsn_delete_display(dmnsn_display *display) void dmnsn_display_flush(dmnsn_display *display) { - glFlush(); + glXWaitX(); glXSwapBuffers(display->dpy, display->win); } -- cgit v1.2.3