summaryrefslogtreecommitdiff
path: root/engine/src/opengl/currently_bound.rs
diff options
context:
space:
mode:
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 }
- }
-}