diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-10-13 03:39:00 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-10-13 03:39:00 +0000 |
commit | bc2395e659081356079688ba74e8db266d8a802e (patch) | |
tree | 8faa57317238f1bbceaf475a73d87e7a52329b90 /tests/libdimension | |
parent | 6c7d47cc44689acb85f96020f7006cc78186bee8 (diff) | |
download | dimension-bc2395e659081356079688ba74e8db266d8a802e.tar.xz |
Some GL test fixes.
Diffstat (limited to 'tests/libdimension')
-rw-r--r-- | tests/libdimension/tests.c | 5 |
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); } |