summaryrefslogtreecommitdiff
path: root/engine/src/opengl/vertex_array.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-01-21 02:45:23 +0100
committerHampusM <hampus@hampusmat.com>2025-01-21 02:45:23 +0100
commit6249b9e2f450257e71baafb7af4a47c4eccaeb9e (patch)
treedf3550641e070e6020763bd814f74896287742c4 /engine/src/opengl/vertex_array.rs
parentc5261577e3bf289215aa2f7aa09df0d2b89efa6f (diff)
refactor(engine): add GlObjects component later in opengl renderer
Diffstat (limited to 'engine/src/opengl/vertex_array.rs')
-rw-r--r--engine/src/opengl/vertex_array.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/engine/src/opengl/vertex_array.rs b/engine/src/opengl/vertex_array.rs
index da5d91e..e1e1a15 100644
--- a/engine/src/opengl/vertex_array.rs
+++ b/engine/src/opengl/vertex_array.rs
@@ -125,17 +125,6 @@ impl VertexArray
{
unsafe { gl::BindVertexArray(self.array) }
}
-
- /// Does a weak clone of this vertex array. The vertex array itself is NOT copied in
- /// any way this function only copies the internal vertex array ID.
- ///
- /// # Safety
- /// The returned `VertexArray` must not be dropped if another `VertexArray`
- /// referencing the same vertex array ID is used later.
- pub unsafe fn clone_unsafe(&self) -> Self
- {
- Self { array: self.array }
- }
}
impl Drop for VertexArray