summaryrefslogtreecommitdiff
path: root/engine/src/opengl/currently_bound.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-04-14 14:33:44 +0200
committerHampusM <hampus@hampusmat.com>2024-04-15 22:07:42 +0200
commit97bb50d42d7c1f475bf63861449a2162f665be26 (patch)
treeb25091d4ab06b60863b4ea1bf08f1ef36ad083a6 /engine/src/opengl/currently_bound.rs
parent73c5bb19e7274b3e4048f70a19a7b9a2d361bfa1 (diff)
refactor(engine): use OpenGL DSA functions
Diffstat (limited to 'engine/src/opengl/currently_bound.rs')
-rw-r--r--engine/src/opengl/currently_bound.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/engine/src/opengl/currently_bound.rs b/engine/src/opengl/currently_bound.rs
deleted file mode 100644
index be01841..0000000
--- a/engine/src/opengl/currently_bound.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-use std::marker::PhantomData;
-
-/// A token signifying a OpenGL object is currently bound.
-pub struct CurrentlyBound<'token, Object>
-{
- _token: PhantomData<&'token Object>,
-}
-
-impl<'token, Object> CurrentlyBound<'token, Object>
-{
- /// Returns a new `CurrentlyBound`.
- ///
- /// # Safety
- /// A object must actually be currently bound. Otherwise, UB can occur.
- #[must_use]
- pub unsafe fn new() -> Self
- {
- Self { _token: PhantomData }
- }
-}