[cogl/wip/rib/master-next: 34/44] test-backface-culling: don't call _swap_buffers
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/rib/master-next: 34/44] test-backface-culling: don't call _swap_buffers
- Date: Fri, 28 Oct 2011 15:45:21 +0000 (UTC)
commit 6b632b87f5e999a1f565aed6bf5b7a5837173d52
Author: Robert Bragg <robert linux intel com>
Date: Fri Oct 14 07:56:33 2011 +0100
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.
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 17bdbd3..4beff1e 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]