• Show log

    Commit

  • Hash : 6be9c009
    Author : Sylvain
    Date : 2021-04-20T13:46:25

    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"
    ( https://github.com/libsdl-org/SDL/commit/56363ebf6124b345e1cfbd14fb6c0e654837910c )
    
    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.
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_w kc3_lang_org thodg_l thodg_m www_kmx_io thodg
    Tags

  • 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)