summaryrefslogtreecommitdiffstats
path: root/tests/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-13 03:39:00 +0000
committerTavian Barnes <tavianator@gmail.com>2009-10-13 03:39:00 +0000
commitbc2395e659081356079688ba74e8db266d8a802e (patch)
tree8faa57317238f1bbceaf475a73d87e7a52329b90 /tests/libdimension
parent6c7d47cc44689acb85f96020f7006cc78186bee8 (diff)
downloaddimension-bc2395e659081356079688ba74e8db266d8a802e.tar.xz
Some GL test fixes.
Diffstat (limited to 'tests/libdimension')
-rw-r--r--tests/libdimension/tests.c5
1 files changed, 4 insertions, 1 deletions
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);
}