From c862f5b3a828535b111f40afbed7371c8f3b7948 Mon Sep 17 00:00:00 2001 From: Emanuele Fornara Date: Wed, 7 Apr 2021 15:38:44 +0200 Subject: [PATCH] tested (cross) compile: rpi + kmsdrm --- src/video/kmsdrm/SDL_kmsdrmvideo.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c index e84bd5ebc..0e30a30eb 100644 --- a/src/video/kmsdrm/SDL_kmsdrmvideo.c +++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c @@ -47,6 +47,11 @@ #include #include +/* RPI eglext.h doesn't define EGL_PLATFORM_GBM_MESA */ +#ifndef EGL_PLATFORM_GBM_MESA +#define EGL_PLATFORM_GBM_MESA 0x31D7 +#endif + /* for older KMSDRM headers... */ #ifndef DRM_FORMAT_MOD_VENDOR_NONE #define DRM_FORMAT_MOD_VENDOR_NONE 0