src/video/kmsdrm/SDL_kmsdrmopengles.c
changeset 13555 936b1869a34a
parent 13524 9761858bd6a3
child 13696 ea20a7434b98
equal deleted inserted replaced
13554:4518dbd47100 13555:936b1869a34a
    35 
    35 
    36 /* EGL implementation of SDL OpenGL support */
    36 /* EGL implementation of SDL OpenGL support */
    37 
    37 
    38 int
    38 int
    39 KMSDRM_GLES_LoadLibrary(_THIS, const char *path) {
    39 KMSDRM_GLES_LoadLibrary(_THIS, const char *path) {
    40     return SDL_EGL_LoadLibrary(_this, path, ((SDL_VideoData *)_this->driverdata)->gbm, EGL_PLATFORM_GBM_MESA);
    40     NativeDisplayType display = (NativeDisplayType)((SDL_VideoData *)_this->driverdata)->gbm;
       
    41     return SDL_EGL_LoadLibrary(_this, path, display, EGL_PLATFORM_GBM_MESA);
    41 }
    42 }
    42 
    43 
    43 SDL_EGL_CreateContext_impl(KMSDRM)
    44 SDL_EGL_CreateContext_impl(KMSDRM)
    44 
    45 
    45 int KMSDRM_GLES_SetSwapInterval(_THIS, int interval) {
    46 int KMSDRM_GLES_SetSwapInterval(_THIS, int interval) {