summaryrefslogtreecommitdiff
path: root/engine/src/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/window.rs')
-rw-r--r--engine/src/window.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/engine/src/window.rs b/engine/src/window.rs
index 294d9ed..b308539 100644
--- a/engine/src/window.rs
+++ b/engine/src/window.rs
@@ -203,7 +203,12 @@ impl Builder
/// occurs.
pub fn create(&self, size: Dimens<u32>, title: &str) -> Result<Window, Error>
{
- let window = self.inner.create(
+ let builder = self.inner.clone().hint(
+ CreationHint::OpenGLDebugContext,
+ CreationHintValue::Bool(cfg!(feature = "debug")),
+ );
+
+ let window = builder.create(
&WindowSize {
width: size.width,
height: size.height,