Files
egui/crates/eframe/src
Carmine Paolino 584fe1eb60 eframe: fall back to a compatibility-profile OpenGL context (#8655)
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
2026-10-05 19:30:25 +01:00
..