Simple Directmedia Layer
Go to file
Sylvain 6be9c00970
Android: prevent error EGL_BAD_DISPLAY while getting egl version without display
There is an error "E libEGL  : validate_display:91 error 3008 (EGL_BAD_DISPLAY)"
that occurs when calling "eglQueryString(display, EGL_VERSION)", with EGL_NO_DISPLAY.

Khronos says "EGL_BAD_DISPLAY is generated if display is not an EGL display connection, unless display is EGL_NO_DISPLAY and name is EGL_EXTENSIONS."
but this was added in SDL with "EGL 1.5 allows querying for client version"
( 56363ebf61 )

In fact:
- it actually doesn't work on Android that has 1.5 egl client
- it works on desktop X11 (using SDL_VIDEO_X11_FORCE_EGL=1)

The commit moves the version call where it's used, eg inside the "if (platform) {"
and checks that "eglGetPlatformDisplay" has been correctly loaded.
2021-04-20 13:46:25 +02:00
.github
acinclude
android-project
android-project-ant
build-scripts
cmake
debian debian: Align to debian packaging scheme 2021-04-07 13:57:23 -07:00
docs
include Android: add AAudio entry in CMake SDL_config 2021-04-16 13:04:36 +02:00
src Android: prevent error EGL_BAD_DISPLAY while getting egl version without display 2021-04-20 13:46:25 +02:00
test bump minimum required autoconf version and revise autogen.sh 2021-04-14 23:20:40 +03:00
VisualC
VisualC-WinRT
visualtest
wayland-protocols wayland: Drop support for kwin specific decoration management 2021-04-07 13:54:07 -07:00
Xcode
Xcode-iOS
.gitignore
Android.mk AAudio: add compilation to Android.mk, but not activated in SDL_config_android.h 2021-04-15 21:03:10 +02:00
autogen.sh bump minimum required autoconf version and revise autogen.sh 2021-04-14 23:20:40 +03:00
BUGS.txt
cmake_uninstall.cmake.in
CMakeLists.txt Android: enable audio driver OpenSLES when building with CMake 2021-04-16 09:44:07 +02:00
configure rename PKG_CONFIG_LIBS_PRIV to PKGCONFIG_LIBS_PRIV 2021-04-14 21:40:50 +03:00
configure.ac bump minimum required autoconf version and revise autogen.sh 2021-04-14 23:20:40 +03:00
CREDITS.txt
INSTALL.txt
LICENSE.txt
Makefile.in
Makefile.minimal
Makefile.os2
Makefile.pandora
Makefile.psp
Makefile.wiz
README-SDL.txt
README.md
sdl2-config-version.cmake.in
sdl2-config.cmake.in
sdl2-config.in
sdl2.m4
sdl2.pc.in rename PKG_CONFIG_LIBS_PRIV to PKGCONFIG_LIBS_PRIV 2021-04-14 21:40:50 +03:00
SDL2.spec.in
SDL2Config.cmake
TODO.txt
WhatsNew.txt

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)