From e70071ff1d72583f447309d1fbcc67959f592633 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Fri, 14 Oct 2011 07:56:33 +0100 Subject: [PATCH] test-backface-culling: don't call _swap_buffers This removes the call to cogl_framebuffer_swap_buffers in the test's paint() function since we shouldn't assume that the framebuffer is a CoglOnscreen framebuffer - in fact by default the framebuffer is offscreen. The swap was resulting in a crash since cogl_framebuffer_swap_buffers has started asserting that the given framebuffer is a CoglOnscreen. Reviewed-by: Neil Roberts --- tests/conform/test-backface-culling.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/conform/test-backface-culling.c b/tests/conform/test-backface-culling.c index 17bdbd32c..4beff1eb6 100644 --- a/tests/conform/test-backface-culling.c +++ b/tests/conform/test-backface-culling.c @@ -241,8 +241,6 @@ paint (TestState *state) validate_result (0); validate_result (2); - - cogl_framebuffer_swap_buffers (state->fb); } static CoglHandle