diff options
author | HampusM <hampus@hampusmat.com> | 2024-11-23 22:17:21 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-11-23 22:17:21 +0100 |
commit | b233ff766a2e399a0a48a98e1f2121e960254950 (patch) | |
tree | dc6b7cbe1dcca483844bb8315eb3cab723e23bb0 /engine/src/opengl/texture.rs | |
parent | 89e3ba657eb0f51895750a6c966fe19d9f88ea6d (diff) |
Diffstat (limited to 'engine/src/opengl/texture.rs')
-rw-r--r-- | engine/src/opengl/texture.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/src/opengl/texture.rs b/engine/src/opengl/texture.rs index 074ade7..52c8554 100644 --- a/engine/src/opengl/texture.rs +++ b/engine/src/opengl/texture.rs @@ -1,5 +1,5 @@ use crate::data_types::dimens::Dimens; -use crate::texture::{Id, Properties}; +use crate::texture::Properties; #[derive(Debug)] pub struct Texture @@ -224,8 +224,8 @@ macro_rules! texture_unit_enum { } } - pub fn from_texture_id(texture_id: Id) -> Option<Self> { - match texture_id.into_inner() { + pub fn from_num(num: usize) -> Option<Self> { + match num { #( N => Some(Self::No~N), )* |