diff options
| author | HampusM <hampus@hampusmat.com> | 2026-05-23 19:56:41 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-05-23 19:56:41 +0200 |
| commit | 8a41f5aeb3ac143d731928d1c343cd9338190f0a (patch) | |
| tree | a7a8bba7e119354abbaa9fff6ec4e16d2f66b829 /opengl-bindings | |
| parent | 02afe68342870ce4f37d7e8fb45c985397d6e08d (diff) | |
Diffstat (limited to 'opengl-bindings')
| -rw-r--r-- | opengl-bindings/src/buffer.rs | 2 | ||||
| -rw-r--r-- | opengl-bindings/src/misc.rs | 2 | ||||
| -rw-r--r-- | opengl-bindings/src/shader.rs | 2 | ||||
| -rw-r--r-- | opengl-bindings/src/texture.rs | 2 | ||||
| -rw-r--r-- | opengl-bindings/src/vertex_array.rs | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/opengl-bindings/src/buffer.rs b/opengl-bindings/src/buffer.rs index 6fb3c2f..edbf2a3 100644 --- a/opengl-bindings/src/buffer.rs +++ b/opengl-bindings/src/buffer.rs @@ -171,7 +171,7 @@ impl<Item: ReprC> Buffer<Item> let Ok(offset_casted) = crate::sys::types::GLintptr::try_from(offset) else { unreachable!(); // Reason: The total size can be casted to a GLintptr - // (done above) so offsets should be castable as well + // (done above) so offsets should be castable as well }; unsafe { diff --git a/opengl-bindings/src/misc.rs b/opengl-bindings/src/misc.rs index 3a3335d..8d871b1 100644 --- a/opengl-bindings/src/misc.rs +++ b/opengl-bindings/src/misc.rs @@ -1,7 +1,7 @@ use bitflags::bitflags; -use crate::CurrentContextWithFns; use crate::data_types::{Dimens, Vec2}; +use crate::CurrentContextWithFns; /// Sets the viewport. /// diff --git a/opengl-bindings/src/shader.rs b/opengl-bindings/src/shader.rs index 2808f0f..7eb1ac9 100644 --- a/opengl-bindings/src/shader.rs +++ b/opengl-bindings/src/shader.rs @@ -3,8 +3,8 @@ use std::ptr::null_mut; use safer_ffi::layout::ReprC; -use crate::CurrentContextWithFns; use crate::data_types::{Matrix, Vec3}; +use crate::CurrentContextWithFns; #[derive(Debug)] pub struct Shader diff --git a/opengl-bindings/src/texture.rs b/opengl-bindings/src/texture.rs index c5d43c9..391ae0e 100644 --- a/opengl-bindings/src/texture.rs +++ b/opengl-bindings/src/texture.rs @@ -1,5 +1,5 @@ -use crate::CurrentContextWithFns; use crate::data_types::Dimens; +use crate::CurrentContextWithFns; #[derive(Debug)] pub struct Texture diff --git a/opengl-bindings/src/vertex_array.rs b/opengl-bindings/src/vertex_array.rs index 3f4b566..30afde4 100644 --- a/opengl-bindings/src/vertex_array.rs +++ b/opengl-bindings/src/vertex_array.rs @@ -2,8 +2,8 @@ use std::ffi::c_void; use safer_ffi::layout::ReprC; -use crate::CurrentContextWithFns; use crate::buffer::Buffer; +use crate::CurrentContextWithFns; #[derive(Debug)] pub struct VertexArray |
