Draw Cache: fix probe vbo size

This commit is contained in:
Clément Foucault 2017-06-10 13:57:39 +02:00
parent a5b3df7545
commit c2f6ca313e
1 changed files with 1 additions and 1 deletions

View File

@ -1338,7 +1338,7 @@ Batch *DRW_cache_probe_get(void)
}
VertexBuffer *vbo = VertexBuffer_create_with_format(&format);
VertexBuffer_allocate_data(vbo, (CIRCLE_RESOL + 1) * 2 + 8);
VertexBuffer_allocate_data(vbo, CIRCLE_RESOL * 2 + 8);
VertexBuffer_set_attrib(vbo, attr_id.pos, v_idx++, v);
for (int a = 1; a < CIRCLE_RESOL; a++) {