proper size of build_vertex_buffer for circle indices
This commit is contained in:
parent
7e409fc14a
commit
b683594013
@ -65,7 +65,7 @@ VertexBuffer get_circle_element_buffer(void) {
|
||||
|
||||
if (buffer == 0) {
|
||||
buffer = create_vertex_buffer();
|
||||
VertexBufferBuilder builder = build_vertex_buffer(buffer, sizeof (GLshort) * CIRCLE_ELEMENT_BUFFER_LENGTH);
|
||||
VertexBufferBuilder builder = build_vertex_buffer(buffer, sizeof (GLshort) * (CIRCLE_VERTICES_MAX - 1) * 3);
|
||||
|
||||
for (size_t i = 1; i < CIRCLE_VERTICES_MAX; ++i) {
|
||||
/* first one is center point index, always zero */
|
||||
|
Loading…
Reference in New Issue
Block a user