Xonotic Forums
[BUG] Xonotic Beta (autobuild) - Could not create EGL context - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Help & Troubleshooting (https://forums.xonotic.org/forumdisplay.php?fid=4)
+--- Thread: [BUG] Xonotic Beta (autobuild) - Could not create EGL context (/showthread.php?tid=10176)



Xonotic Beta (autobuild) - Could not create EGL context - norbert79 - 06-28-2026

Dear Development team,

downloading the last (to date: 2026-06-24) autobuild version of Xonotic gives me an error for creating OpenGL context during start:
Code:
Failed to initialize OpenGL context: Could not create EGL context (context attributes are not supported) Xonotic Linux d93f9c42 Jun 24 2026 release GC

Operating system: Linux
Video driver: nvidia-580xx-dkms 580.173.02-1
GFX card: NVIDIA 1050Ti discreet mode
Kernel: Arch 7.0.14-arch1-1
SDL: sdl3 3.4.10-1
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL

Tested under SteamDeck and on an Intel IRIS GFX card, the game works fine, only my system refuses starting it. Regular Xonotic-0.8.6 (cb39879e96f19abb2877588c2d50c5d3e64dd68153bec3dd1bebedf4d765e506afa419c28381d7005aed664cb1a042571c132b5b319e4308cab67745d996c2a6  xonotic-0.8.6.zip) works fine. (Using GLX)

I am wondering if you have met with this issue.

Thank you for your reply in advance!


RE: Xonotic Beta (autobuild) - Could not create EGL context - bones_was_here - 06-29-2026

It seems to be some regression in nvidia's wayland support that was recently rolled out to arch users. EGL is the interface used on native wayland, GLX is the one used on native xorg.

You may be able to work around it by telling SDL to use xwayland ("x11") instead of native wayland by setting SDL_VIDEODRIVER, it's documented at https://wiki.libsdl.org/SDL2/FAQUsingSDL

For native wayland you'd need to change your system packages such that EGL works.