mirror of
https://github.com/storytold/egui.git
synced 2026-11-24 03:22:06 +01:00
eframe's glow backend asks for OpenGL 3.3 core, then for OpenGL ES 2.0. Some Windows drivers reject both: Intel HD Graphics 3000 offers OpenGL 3.1 and lacks WGL_EXT_create_context_es2_profile, so eframe fails to start with "extension to create ES context with wgl is not present", although egui_glow runs fine on that hardware. A user on Windows 10 1903 got 0xC0072095 for 3.3 core, then that error for ES. This adds a last attempt: a compatibility profile without a minimum version, which drivers answer with the newest version they support. egui_glow already handles GLSL 1.20 and 1.40. Every failed attempt is logged at warn and the last error is returned. The attempts and the try-in-order loop are small functions with unit tests. * [x] I have followed the instructions in the PR template