diff options
| author | HampusM <hampus@hampusmat.com> | 2026-09-20 16:02:26 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-09-20 16:02:26 +0200 |
| commit | 9c0440f18997e84a10c1af5ca9b4daa99e15f5ed (patch) | |
| tree | b2bf0fd2e621a7bb57654937253ea75d853fca90 | |
| parent | e118bc4dbabc3690f5e6a5fae3003671890c0bab (diff) | |
feat(opengl-bindings): add VertexArray::unbind_element_buffer fn
| -rw-r--r-- | opengl-bindings/src/vertex_array.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ -131,6 +131,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<VertexBufferItem: ReprC>( &self, current_context: &MaybeCurrentContextWithFns, |
