summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-09-14 11:48:37 +0200
committerHampusM <hampus@hampusmat.com>2026-09-14 11:48:37 +0200
commitbe3f23775d7840918ac6eda4cfb58fc9b090b99f (patch)
tree31e77a8c8ae181837f53d460a0611eda7ca39721
parent2d45c76f87948628358040606b8adf926e3cf27f (diff)
refactor(opengl-bindings): make misc::set_polygon_mode not take impl trait params
-rw-r--r--opengl-bindings/src/misc.rs8
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);
}
}