Commit a726ef32 authored by Neil Roberts's avatar Neil Roberts

test-cogl-vertex-buffer: Fix the maximum index number

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.
parent fbcaf1e0
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment