summaryrefslogtreecommitdiff
path: root/engine/src/opengl/buffer.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/buffer.rs
parentc5261577e3bf289215aa2f7aa09df0d2b89efa6f (diff)
refactor(engine): add GlObjects component later in opengl renderer
Diffstat (limited to 'engine/src/opengl/buffer.rs')
-rw-r--r--engine/src/opengl/buffer.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/engine/src/opengl/buffer.rs b/engine/src/opengl/buffer.rs
index 2be7f12..68a75fb 100644
--- a/engine/src/opengl/buffer.rs
+++ b/engine/src/opengl/buffer.rs
@@ -39,19 +39,6 @@ impl<Item> Buffer<Item>
{
self.buf
}
-
- /// Does a weak clone of this buffer. The buffer itself is NOT copied in any way this
- /// function only copies the internal buffer ID.
- ///
- /// # Safety
- /// The returned `Buffer` must not be dropped if another `Buffer` referencing the
- /// same buffer ID is used later or if a [`VertexArray`] is used later.
- ///
- /// [`VertexArray`]: crate::opengl::vertex_array::VertexArray
- pub unsafe fn clone_weak(&self) -> Self
- {
- Self { buf: self.buf, _pd: PhantomData }
- }
}
impl<Item> Drop for Buffer<Item>