mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-17 14:47:19 +01:00
aeee424f65
Rainer Sabelka After I did an upgrade of my arch Linux installation (resulting in an update of Mesa to version 18.2.3), all my SDL2 applications which use the KMS/DRM driver stopped working. Reason: Creating a Window with SDL_CreateWindow failed because the call to EGL eglCreateWindowSurface() returns an error "EGL_BAD_MATCH". After investigating with the debugger I figured, that the configuration, which has been selected from the output of eglChooseConfig(), has an "EGL_NATIVE_VISUAL_ID" which does not match the "format" of the underlying gbm surface. The attached patch fixes the problem. It does so, by mimicking Weston's behavior. All configurations returned from eglChooseConfig() which have an visual_id different from the gbm format are discarded, and only from the remaining ones the "best" match is selected. |
||
---|---|---|
.. | ||
atomic | ||
audio | ||
core | ||
cpuinfo | ||
dynapi | ||
events | ||
file | ||
filesystem | ||
haptic | ||
hidapi | ||
joystick | ||
libm | ||
loadso | ||
main | ||
power | ||
render | ||
sensor | ||
stdlib | ||
test | ||
thread | ||
timer | ||
video | ||
SDL_assert_c.h | ||
SDL_assert.c | ||
SDL_dataqueue.c | ||
SDL_dataqueue.h | ||
SDL_error_c.h | ||
SDL_error.c | ||
SDL_hints.c | ||
SDL_internal.h | ||
SDL_log.c | ||
SDL.c |