summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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);
}