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 <neil@linux.intel.com>
This commit is contained in:
Robert Bragg 2011-10-14 07:56:33 +01:00
parent b72f255c0a
commit e70071ff1d

View File

@ -241,8 +241,6 @@ paint (TestState *state)
validate_result (0);
validate_result (2);
cogl_framebuffer_swap_buffers (state->fb);
}
static CoglHandle