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:
Diffstat (limited to 'source/blender/gpu/opengl/gl_vertex_array.cc')
-rw-r--r--source/blender/gpu/opengl/gl_vertex_array.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpu/opengl/gl_vertex_array.cc b/source/blender/gpu/opengl/gl_vertex_array.cc
index 64d44c39587..358b92a9979 100644
--- a/source/blender/gpu/opengl/gl_vertex_array.cc
+++ b/source/blender/gpu/opengl/gl_vertex_array.cc
@@ -30,6 +30,7 @@
#include "gl_batch.hh"
#include "gl_context.hh"
+#include "gl_index_buffer.hh"
#include "gl_vertex_array.hh"
@@ -151,7 +152,7 @@ void GLVertArray::update_bindings(const GLuint vao,
if (batch->elem) {
/* Binds the index buffer. This state is also saved in the VAO. */
- GPU_indexbuf_use(batch->elem);
+ static_cast<GLIndexBuf *>(unwrap(batch->elem))->bind();
}
}