projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbcaf1e
)
test-cogl-vertex-buffer: Fix the maximum index number
author
Neil Roberts
<neil@linux.intel.com>
Wed, 17 Feb 2010 14:38:45 +0000
(14:38 +0000)
committer
Neil Roberts
<neil@linux.intel.com>
Wed, 17 Feb 2010 14:38:45 +0000
(14:38 +0000)
It was passing the number of vertices to
cogl_vertex_buffer_draw_elements but instead it should take the
maximum index which would be the number of vertices minus one. This
was causing errors to be reported with the checks filterset of Bugle.
tests/interactive/test-cogl-vertex-buffer.c
patch
|
blob
|
history
diff --git
a/tests/interactive/test-cogl-vertex-buffer.c
b/tests/interactive/test-cogl-vertex-buffer.c
index
a420b78
..
8d13447
100644
(file)
--- a/
tests/interactive/test-cogl-vertex-buffer.c
+++ b/
tests/interactive/test-cogl-vertex-buffer.c
@@
-147,7
+147,7
@@
on_paint (ClutterActor *actor, TestState *state)
state->indices,
0, /* min index */
(MESH_WIDTH + 1) *
- (MESH_HEIGHT + 1), /* max index */
+ (MESH_HEIGHT + 1)
- 1
, /* max index */
0, /* indices offset */
state->n_static_indices);
}