src/video/kmsdrm/SDL_kmsdrmopengles.c
changeset 13555 936b1869a34a
parent 13524 9761858bd6a3
child 13696 ea20a7434b98
     1.1 --- a/src/video/kmsdrm/SDL_kmsdrmopengles.c	Thu Feb 27 08:18:20 2020 -0800
     1.2 +++ b/src/video/kmsdrm/SDL_kmsdrmopengles.c	Thu Feb 27 08:20:34 2020 -0800
     1.3 @@ -37,7 +37,8 @@
     1.4  
     1.5  int
     1.6  KMSDRM_GLES_LoadLibrary(_THIS, const char *path) {
     1.7 -    return SDL_EGL_LoadLibrary(_this, path, ((SDL_VideoData *)_this->driverdata)->gbm, EGL_PLATFORM_GBM_MESA);
     1.8 +    NativeDisplayType display = (NativeDisplayType)((SDL_VideoData *)_this->driverdata)->gbm;
     1.9 +    return SDL_EGL_LoadLibrary(_this, path, display, EGL_PLATFORM_GBM_MESA);
    1.10  }
    1.11  
    1.12  SDL_EGL_CreateContext_impl(KMSDRM)