diff options
author | Robert Bragg <robert@linux.intel.com> | 2011-10-14 07:56:33 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2011-11-01 12:03:02 +0000 |
commit | e70071ff1d72583f447309d1fbcc67959f592633 (patch) | |
tree | 48c76705ca5c6a91e7b570d4693a64a487f062de /tests | |
parent | b72f255c0ab2ccb914caebaecc7cb7988432b9c0 (diff) | |
download | cogl-e70071ff1d72583f447309d1fbcc67959f592633.tar.gz |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/conform/test-backface-culling.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/conform/test-backface-culling.c b/tests/conform/test-backface-culling.c index 17bdbd32..4beff1eb 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 |