diff options
Diffstat (limited to 'source/blender/gpu/opengl/gl_vertex_array.cc')
-rw-r--r-- | source/blender/gpu/opengl/gl_vertex_array.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/opengl/gl_vertex_array.cc b/source/blender/gpu/opengl/gl_vertex_array.cc index 463dc18cc60..4e49828d39d 100644 --- a/source/blender/gpu/opengl/gl_vertex_array.cc +++ b/source/blender/gpu/opengl/gl_vertex_array.cc @@ -122,7 +122,7 @@ void GLVertArray::update_bindings(const GLuint vao, for (int v = GPU_BATCH_VBO_MAX_LEN - 1; v > -1; v--) { GLVertBuf *vbo = batch->verts_(v); if (vbo) { - GPU_vertbuf_use(batch->verts[v]); + vbo->bind(); attr_mask &= ~vbo_bind(interface, &vbo->format, 0, vbo->vertex_len, false); } } @@ -130,7 +130,7 @@ void GLVertArray::update_bindings(const GLuint vao, for (int v = GPU_BATCH_INST_VBO_MAX_LEN - 1; v > -1; v--) { GLVertBuf *vbo = batch->inst_(v); if (vbo) { - GPU_vertbuf_use(batch->inst[v]); + vbo->bind(); attr_mask &= ~vbo_bind(interface, &vbo->format, base_instance, vbo->vertex_len, true); } } |