mojira.dev
MC-312623

OpenGL fails with EGL_BAD_DISPLAY on NVIDIA Linux

Summary:
OpenGL backend fails to initialize with EGL_BAD_DISPLAY on NVIDIA (Linux/Wayland), game silently falls back to Vulkan

Environment:

  • Minecraft: 26.3 (vanilla, no mods)

  • OS: Nobara Linux 44 (Fedora-based), KDE Plasma, Wayland session

  • Kernel: 7.2.10-200.nobara.fc44.x86_64

  • GPU: NVIDIA GeForce RTX 3060 (GA106)

  • Driver: NVIDIA proprietary 595.104.02

  • Java: 25.0.1 (Microsoft build), launched via Prism Launcher 11.1.1

  • Installed EGL packages: egl-wayland 1.1.22, egl-wayland2 1.0.2, egl-gbm 1.1.4, egl-x11 1.0.6, libglvnd-egl 1.7.0

Steps to reproduce:

  1. Set the preferred graphics API to OpenGL in video settings

  2. Restart the game

Expected result:
The game starts using the OpenGL backend.

Actual result:
Creating the OpenGL backend fails and the game falls back to Vulkan:

[Render thread/ERROR]: Failed to create backend OpenGL
com.mojang.renderpearl.api.device.BackendCreationException: Failed to create window for OpenGL after creating context: Couldn't find matching EGL config (call to eglChooseConfig failed, reporting an error of EGL_BAD_DISPLAY)
	at com.mojang.renderpearl.backend.opengl.GlDevice.<init>(GlDevice.java:109)
	at com.mojang.renderpearl.backend.opengl.GlBackend.createDevice(GlBackend.java:68)
	at net.minecraft.client.Minecraft.<init>(Minecraft.java:533)

Additional information:

  • EGL itself works on this system: eglinfo -B reports NVIDIA OpenGL 4.6 successfully on the Wayland, X11, GBM and surfaceless platforms (output attached).

  • Minecraft 1.21.10 (GLFW-based) runs fine with OpenGL on the same system.

  • Vulkan backend works.

  • With SDL_VIDEO_DRIVER=x11 set: [same error / works]

Environment

Minecraft: 26.3 (vanilla, no mods) OS: Nobara Linux 44 (Fedora-based), KDE Plasma, Wayland session Kernel: 7.2.10-200.nobara.fc44.x86_64 GPU: NVIDIA GeForce RTX 3060 (GA106) NVIDIA proprietary 595.104.02 Java: 25.0.1, launched via Prism Launcher 11.1.1

Linked issues

Comments 1

Hi!
Thank you for your report! 

We're already tracking this issue at MC-311954 , so I will resolve and link this ticket as a Duplicate. 

I suggest also to browse through the main issue for potential fixes. 

If you would like to add a vote and any extra information to the main ticket it would be appreciated. 

Quick Links: 
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Kalidamos

(Unassigned)

Unconfirmed

26.3

Retrieved