SDL icon indicating copy to clipboard operation
SDL copied to clipboard

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

Open toadster172 opened this issue 6 months ago • 0 comments

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.

toadster172 avatar May 22 '25 00:05 toadster172