diff options
| author | HampusM <hampus@hampusmat.com> | 2026-08-11 12:30:58 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-08-11 12:30:58 +0200 |
| commit | 4860c458078f714df46e683944735645f9d73618 (patch) | |
| tree | 1ac6293eb80a53f976fb7ea323d981df720443aa /opengl-bindings/src/buffer.rs | |
| parent | 37496a6db6b73b987b881ddd568d4a609389670c (diff) | |
feat(opengl-bindings): make more types derive Clone
Diffstat (limited to 'opengl-bindings/src/buffer.rs')
| -rw-r--r-- | opengl-bindings/src/buffer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opengl-bindings/src/buffer.rs b/opengl-bindings/src/buffer.rs index 5045855..2567aba 100644 --- a/opengl-bindings/src/buffer.rs +++ b/opengl-bindings/src/buffer.rs @@ -6,7 +6,7 @@ use safer_ffi::layout::ReprC; use crate::MaybeCurrentContextWithFns; -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Buffer<Item: ReprC> { buf: crate::sys::types::GLuint, @@ -242,7 +242,7 @@ impl Usage } } -#[derive(Debug)] +#[derive(Debug, Clone, Copy)] #[repr(u32)] pub enum BindingTarget { |
