mirror of https://github.com/encounter/SDL.git
SDL_kmsdrmvideo.c: define EGL_PLATFORM_GBM_MESA if it's missing.
Fixes: https://github.com/libsdl-org/SDL/issues/4232
This commit is contained in:
parent
ab7944f960
commit
5262b52ddd
|
@ -64,6 +64,10 @@
|
||||||
#define KMSDRM_DRI_CARDPATHFMT "/dev/dri/card%d"
|
#define KMSDRM_DRI_CARDPATHFMT "/dev/dri/card%d"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef EGL_PLATFORM_GBM_MESA
|
||||||
|
#define EGL_PLATFORM_GBM_MESA 0x31D7
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
check_modestting(int devindex)
|
check_modestting(int devindex)
|
||||||
{
|
{
|
||||||
|
@ -1457,7 +1461,7 @@ KMSDRM_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
|
||||||
const Uint32 version = SDL_VERSIONNUM((Uint32)info->version.major,
|
const Uint32 version = SDL_VERSIONNUM((Uint32)info->version.major,
|
||||||
(Uint32)info->version.minor,
|
(Uint32)info->version.minor,
|
||||||
(Uint32)info->version.patch);
|
(Uint32)info->version.patch);
|
||||||
|
|
||||||
if (version < SDL_VERSIONNUM(2, 0, 15)) {
|
if (version < SDL_VERSIONNUM(2, 0, 15)) {
|
||||||
SDL_SetError("Version must be 2.0.15 or newer");
|
SDL_SetError("Version must be 2.0.15 or newer");
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
|
@ -1467,7 +1471,7 @@ KMSDRM_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info)
|
||||||
info->info.kmsdrm.dev_index = viddata->devindex;
|
info->info.kmsdrm.dev_index = viddata->devindex;
|
||||||
info->info.kmsdrm.drm_fd = viddata->drm_fd;
|
info->info.kmsdrm.drm_fd = viddata->drm_fd;
|
||||||
info->info.kmsdrm.gbm_dev = viddata->gbm_dev;
|
info->info.kmsdrm.gbm_dev = viddata->gbm_dev;
|
||||||
|
|
||||||
return SDL_TRUE;
|
return SDL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue