[Piglit] [PATCH 6/9] glut_waffle: Fix glutMainLoop

Chad Versace chad.versace at linux.intel.com
Mon Jul 9 10:43:34 PDT 2012


Stop calling waffle_swap_buffers() from glutMainLoop. It breaks tests in
non-auto mode. It's the test's responsibility to call swapBuffers, anyway.

Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
 src/glut_waffle/glut_waffle.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/glut_waffle/glut_waffle.c b/src/glut_waffle/glut_waffle.c
index 60db674..0359074 100644
--- a/src/glut_waffle/glut_waffle.c
+++ b/src/glut_waffle/glut_waffle.c
@@ -399,9 +399,6 @@ glutMainLoop(void)
 	if (_glut->window->display_cb)
 		_glut->window->display_cb();
 
-	if (_glut->window)
-		waffle_window_swap_buffers(_glut->window->waffle);
-
 	// FIXME: Tests run without -auto require basic input.
 
 	// Workaround for input:
-- 
1.7.11.1



More information about the Piglit mailing list