Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-09-07 00:45:51 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-07 14:59:51 +0300
commitbb2aeb4504907cab1cf8c4afc4dd1d6495c940e4 (patch)
tree550d043273b767d55ef32409e58de17cb75e724e /source/blender/gpu/opengl/gl_drawlist.cc
parent99e3541d3b1a1fc62fcd24e9f0d12a631e4caead (diff)
GPUVertBuf: Rename GPUVertBuf to VertBuf and add some getters
to avoid more typecasts.
Diffstat (limited to 'source/blender/gpu/opengl/gl_drawlist.cc')
-rw-r--r--source/blender/gpu/opengl/gl_drawlist.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpu/opengl/gl_drawlist.cc b/source/blender/gpu/opengl/gl_drawlist.cc
index de729487226..d8c17084457 100644
--- a/source/blender/gpu/opengl/gl_drawlist.cc
+++ b/source/blender/gpu/opengl/gl_drawlist.cc
@@ -139,10 +139,10 @@ void GLDrawList::append(GPUBatch *gpu_batch, int i_first, int i_count)
this->submit();
batch_ = batch;
/* Cached for faster access. */
- GLIndexBuf *el = batch_->gl_elem();
+ GLIndexBuf *el = batch_->elem_();
base_index_ = el ? el->index_base_ : UINT_MAX;
v_first_ = el ? el->index_start_ : 0;
- v_count_ = el ? el->index_len_ : batch->verts[0]->vertex_len;
+ v_count_ = el ? el->index_len_ : batch->verts_(0)->vertex_len;
}
if (v_count_ == 0) {
@@ -202,7 +202,7 @@ void GLDrawList::submit(void)
batch_->bind(0);
if (MDI_INDEXED) {
- GLenum gl_type = to_gl(batch_->gl_elem()->index_type_);
+ GLenum gl_type = to_gl(batch_->elem_()->index_type_);
glMultiDrawElementsIndirect(prim, gl_type, offset, command_len_, 0);
}
else {