diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-07 00:45:51 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-07 14:59:51 +0300 |
commit | bb2aeb4504907cab1cf8c4afc4dd1d6495c940e4 (patch) | |
tree | 550d043273b767d55ef32409e58de17cb75e724e /source/blender/gpu/intern/gpu_batch.cc | |
parent | 99e3541d3b1a1fc62fcd24e9f0d12a631e4caead (diff) |
GPUVertBuf: Rename GPUVertBuf to VertBuf and add some getters
to avoid more typecasts.
Diffstat (limited to 'source/blender/gpu/intern/gpu_batch.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_batch.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_batch.cc b/source/blender/gpu/intern/gpu_batch.cc index 864843a6d01..34655c48ca4 100644 --- a/source/blender/gpu/intern/gpu_batch.cc +++ b/source/blender/gpu/intern/gpu_batch.cc @@ -267,14 +267,14 @@ void GPU_batch_draw_advanced( v_count = batch->elem_()->index_len_get(); } else { - v_count = batch->verts[0]->vertex_len; + v_count = batch->verts_(0)->vertex_len; } } if (i_count == 0) { - i_count = (batch->inst[0]) ? batch->inst[0]->vertex_len : 1; + i_count = (batch->inst[0]) ? batch->inst_(0)->vertex_len : 1; /* Meh. This is to be able to use different numbers of verts in instance vbos. */ if (batch->inst[1] != NULL) { - i_count = min_ii(i_count, batch->inst[1]->vertex_len); + i_count = min_ii(i_count, batch->inst_(1)->vertex_len); } } |