egl: favor truecolor configurations.

If app requested <= 16 color depth and there is a 24-bit config available,
favor that. This fixes things that quietly expect to get truecolor output
but don't request it (...like SDL's render api...) and things that are
probably requesting 16-bit color as a fallback but expecting reasonable
systems to give them full depth.

Specifically, this fixes Life is Strange on Wayland, which uses the latter
approach, and anything using SDL_Render on Wayland, which uses the former.

Fixes #4056.
Fixes #4132.
1 file changed
tree: 7cc1c527451fb2fa23028966e50738cddb1fef50
  1. .github/
  2. acinclude/
  3. android-project/
  4. android-project-ant/
  5. build-scripts/
  6. cmake/
  7. debian/
  8. docs/
  9. include/
  10. src/
  11. test/
  12. VisualC/
  13. VisualC-WinRT/
  14. visualtest/
  15. wayland-protocols/
  16. Xcode/
  17. Xcode-iOS/
  18. .gitignore
  19. Android.mk
  20. autogen.sh
  21. BUGS.txt
  22. cmake_uninstall.cmake.in
  23. CMakeLists.txt
  24. configure
  25. configure.ac
  26. CREDITS.txt
  27. INSTALL.txt
  28. LICENSE.txt
  29. Makefile.in
  30. Makefile.minimal
  31. Makefile.os2
  32. Makefile.pandora
  33. Makefile.psp
  34. Makefile.wiz
  35. mkdocs.yml
  36. README-SDL.txt
  37. README.md
  38. sdl2-config-version.cmake.in
  39. sdl2-config.cmake.in
  40. sdl2-config.in
  41. sdl2.m4
  42. sdl2.pc.in
  43. SDL2.spec.in
  44. SDL2Config.cmake
  45. TODO.txt
  46. WhatsNew.txt
README.md

Simple DirectMedia Layer (SDL) Version 2.0

https://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting with README.md

Enjoy!

Sam Lantinga (slouken@libsdl.org)