|
@@ -74,10 +74,6 @@ static char kmsdrm_dri_cardpath[32];
|
|
|
#define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0)
|
|
#define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0)
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
-#ifndef EGL_PLATFORM_GBM_MESA
|
|
|
|
|
-#define EGL_PLATFORM_GBM_MESA 0x31D7
|
|
|
|
|
-#endif
|
|
|
|
|
-
|
|
|
|
|
static int get_driindex(void)
|
|
static int get_driindex(void)
|
|
|
{
|
|
{
|
|
|
int available = -ENOENT;
|
|
int available = -ENOENT;
|
|
@@ -696,7 +692,7 @@ static SDL_VideoDevice *KMSDRM_CreateDevice(void)
|
|
|
device->GL_GetSwapInterval = KMSDRM_GLES_GetSwapInterval;
|
|
device->GL_GetSwapInterval = KMSDRM_GLES_GetSwapInterval;
|
|
|
device->GL_SwapWindow = KMSDRM_GLES_SwapWindow;
|
|
device->GL_SwapWindow = KMSDRM_GLES_SwapWindow;
|
|
|
device->GL_DestroyContext = KMSDRM_GLES_DestroyContext;
|
|
device->GL_DestroyContext = KMSDRM_GLES_DestroyContext;
|
|
|
- device->GL_DefaultProfileConfig = KMSDRM_GLES_DefaultProfileConfig;
|
|
|
|
|
|
|
+ device->GL_SetDefaultProfileConfig = KMSDRM_GLES_SetDefaultProfileConfig;
|
|
|
|
|
|
|
|
#ifdef SDL_VIDEO_VULKAN
|
|
#ifdef SDL_VIDEO_VULKAN
|
|
|
device->Vulkan_LoadLibrary = KMSDRM_Vulkan_LoadLibrary;
|
|
device->Vulkan_LoadLibrary = KMSDRM_Vulkan_LoadLibrary;
|
|
@@ -2132,12 +2128,12 @@ bool KMSDRM_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Propert
|
|
|
before we call KMSDRM_GBMInit(), causing all GLES programs to fail. */
|
|
before we call KMSDRM_GBMInit(), causing all GLES programs to fail. */
|
|
|
if (!_this->egl_data) {
|
|
if (!_this->egl_data) {
|
|
|
egl_display = (NativeDisplayType)_this->internal->gbm_dev;
|
|
egl_display = (NativeDisplayType)_this->internal->gbm_dev;
|
|
|
- if (!SDL_EGL_LoadLibrary(_this, NULL, egl_display, EGL_PLATFORM_GBM_MESA)) {
|
|
|
|
|
|
|
+ if (!SDL_EGL_LoadLibrary(_this, NULL, egl_display)) {
|
|
|
// Try again with OpenGL ES 2.0
|
|
// Try again with OpenGL ES 2.0
|
|
|
_this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
|
|
_this->gl_config.profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
|
|
|
_this->gl_config.major_version = 2;
|
|
_this->gl_config.major_version = 2;
|
|
|
_this->gl_config.minor_version = 0;
|
|
_this->gl_config.minor_version = 0;
|
|
|
- if (!SDL_EGL_LoadLibrary(_this, NULL, egl_display, EGL_PLATFORM_GBM_MESA)) {
|
|
|
|
|
|
|
+ if (!SDL_EGL_LoadLibrary(_this, NULL, egl_display)) {
|
|
|
return SDL_SetError("Can't load EGL/GL library on window creation.");
|
|
return SDL_SetError("Can't load EGL/GL library on window creation.");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|