diff options
| author | HampusM <hampus@hampusmat.com> | 2026-09-14 11:48:37 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-09-14 11:48:37 +0200 |
| commit | be3f23775d7840918ac6eda4cfb58fc9b090b99f (patch) | |
| tree | 31e77a8c8ae181837f53d460a0611eda7ca39721 | |
| parent | 2d45c76f87948628358040606b8adf926e3cf27f (diff) | |
refactor(opengl-bindings): make misc::set_polygon_mode not take impl trait params
| -rw-r--r-- | opengl-bindings/src/misc.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/opengl-bindings/src/misc.rs b/opengl-bindings/src/misc.rs index 60fc510..f7f86d0 100644 --- a/opengl-bindings/src/misc.rs +++ b/opengl-bindings/src/misc.rs @@ -90,14 +90,12 @@ pub fn clear_buffers(current_context: &MaybeCurrentContextWithFns, mask: BufferC pub fn set_polygon_mode( current_context: &MaybeCurrentContextWithFns, - face: impl Into<PolygonModeFace>, - mode: impl Into<PolygonMode>, + face: PolygonModeFace, + mode: PolygonMode, ) { unsafe { - current_context - .fns() - .PolygonMode(face.into() as u32, mode.into() as u32); + current_context.fns().PolygonMode(face as u32, mode as u32); } } |
