Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
toadster172 opened this issue May 22, 2025 · 0 comments
Open

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

toadster172 opened this issue May 22, 2025 · 0 comments

Comments

@toadster172
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant