From 4ea93029c65fd4cdb8b707494855120c0f792952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Sun, 6 Sep 2020 02:46:51 +0200 Subject: 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. --- source/blender/gpu/opengl/gl_vertex_array.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/gpu/opengl/gl_vertex_array.cc') 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(unwrap(batch->elem))->bind(); } } -- cgit v1.2.3