From 0f28caa550f09b6e6ed5a54e07de53b23df11faa Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Mon, 27 Apr 2026 18:57:00 -0400 Subject: Fix EGL --- crates/teleia/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/teleia/src/lib.rs b/crates/teleia/src/lib.rs index 894756d..85a5f4e 100644 --- a/crates/teleia/src/lib.rs +++ b/crates/teleia/src/lib.rs @@ -41,6 +41,7 @@ bitflags! { const OVERLAY = 0b00000001; const HIDDEN = 0b00000010; const NORESIZE = 0b00000100; + const EGL = 0b00001000; } } @@ -83,7 +84,10 @@ where let (rglfw, rwindow, gl, events) = { use glfw::fail_on_errors; let mut glfw = glfw::init(glfw::fail_on_errors!()).expect("failed to initialize GLFW"); - glfw.window_hint(glfw::WindowHint::ContextCreationApi(glfw::ContextCreationApi::Egl)); + + if options.contains(Options::EGL) { + glfw.window_hint(glfw::WindowHint::ContextCreationApi(glfw::ContextCreationApi::Egl)); + } // let gl_attr = video.gl_attr(); // gl_attr.set_context_profile(sdl2::video::GLProfile::Core); // gl_attr.set_context_version(3, 0); -- cgit v1.2.3