summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/src/window.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/engine/src/window.rs b/engine/src/window.rs
index eed7901..0d0bac4 100644
--- a/engine/src/window.rs
+++ b/engine/src/window.rs
@@ -188,16 +188,9 @@ pub struct Builder
impl Builder
{
#[must_use]
- pub fn creation_hint(mut self, creation_hint: CreationHint, value: i32) -> Self
+ pub fn creation_hint(mut self, hint: CreationHint, value: i32) -> Self
{
- self.inner = self.inner.hint(
- match creation_hint {
- CreationHint::OpenGLDebugContext => {
- glfw::window::Hint::OpenGLDebugContext
- }
- },
- value,
- );
+ self.inner = self.inner.hint(hint, value);
self
}