From 9c0440f18997e84a10c1af5ca9b4daa99e15f5ed Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 20 Sep 2026 16:02:26 +0200 Subject: feat(opengl-bindings): add VertexArray::unbind_element_buffer fn --- opengl-bindings/src/vertex_array.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/opengl-bindings/src/vertex_array.rs b/opengl-bindings/src/vertex_array.rs index 723bbfb..f46b07d 100644 --- a/opengl-bindings/src/vertex_array.rs +++ b/opengl-bindings/src/vertex_array.rs @@ -130,6 +130,16 @@ impl VertexArray } } + #[tracing::instrument(skip(current_context))] + pub fn unbind_element_buffer(&self, current_context: &MaybeCurrentContextWithFns) + { + unsafe { + current_context + .fns() + .VertexArrayElementBuffer(self.array, 0); + } + } + #[tracing::instrument(skip(current_context))] pub fn bind_vertex_buffer( &self, -- cgit v1.2.3-18-g5258