diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-06 03:46:51 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-06 23:13:06 +0300 |
commit | 4ea93029c65fd4cdb8b707494855120c0f792952 (patch) | |
tree | a02801daaaf0f0a4e1bb7be84d34e27759b32a36 /source/blender/gpu/opengl/gl_vertex_array.cc | |
parent | 84d67bd0a937e842618ee7843958f3147ba6af58 (diff) |
GPUIndexBuf: GL backend Isolation
This is part of the Vulkan backend task T68990.
There is no real change, only making some code re-organisation.
This also make the IndexBuf completely abstract from outside the
GPU module.
Diffstat (limited to 'source/blender/gpu/opengl/gl_vertex_array.cc')
-rw-r--r-- | source/blender/gpu/opengl/gl_vertex_array.cc | 3 |
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(); } } |