Skip to content

SDL2: Creating an EGL window fails on Linux with Nvidia GPU #13094

@toadster172

Description

@toadster172

Platform: Ubuntu 24.04, X11, Nvidia 535 drivers

Calls to SDL_CreateWindow using that use EGL fail due to the call to eglCreateWindowSurface from SDL_EGL_CreateSurface failing with EGL_BAD_ATTRIBUTE. The only attribute provided is EGL_PRESENT_OPAQUE_EXT, which SDL seems to always add if the driver reports SDL_EGL_DISPLAY_EXTENSION as present. For whatever reason, Nvidia drivers report the extension and then reject the attribute anyway.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions