diff options
| author | LLLL Colonq <llll@colonq> | 2026-04-27 18:57:00 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-04-27 18:57:00 -0400 |
| commit | 0f28caa550f09b6e6ed5a54e07de53b23df11faa (patch) | |
| tree | 56d17089dbfa9e595f49a337da056a242301d0a6 /crates | |
| parent | ddaa590da72a412fa37dac0f9eeaebfdad533f4a (diff) | |
Fix EGL
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/teleia/src/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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); |
