Changes of Revision 202
fix_import_eglextchromium.patch
Added
x
1
2
+diff -rup xbmc-19.5-Matrix.orig/cmake/modules/FindEGL.cmake xbmc-19.5-Matrix/cmake/modules/FindEGL.cmake
3
+--- xbmc-19.5-Matrix.orig/cmake/modules/FindEGL.cmake 2022-12-24 10:29:16.000000000 +0100
4
++++ xbmc-19.5-Matrix/cmake/modules/FindEGL.cmake 2023-01-02 10:03:58.893374532 +0100
5
+@@ -9,6 +9,7 @@
6
+ # EGL_INCLUDE_DIRS - the EGL include directory
7
+ # EGL_LIBRARIES - the EGL libraries
8
+ # EGL_DEFINITIONS - the EGL definitions
9
++# HAVE_EGLEXTANGLE - if eglext_angle.h exists else use eglextchromium.h
10
+ #
11
+ # and the following imported targets::
12
+ #
13
+@@ -35,6 +36,11 @@ if(EGL_FOUND)
14
+ set(EGL_LIBRARIES ${EGL_LIBRARY})
15
+ set(EGL_INCLUDE_DIRS ${EGL_INCLUDE_DIR})
16
+ set(EGL_DEFINITIONS -DHAS_EGL=1)
17
++ include(CheckIncludeFiles)
18
++ check_include_files("EGL/egl.h;EGL/eglext.h;EGL/eglext_angle.h" HAVE_EGLEXTANGLE)
19
++ if(HAVE_EGLEXTANGLE)
20
++ list(APPEND EGL_DEFINITIONS "-DHAVE_EGLEXTANGLE=1")
21
++ endif()
22
+
23
+ if(NOT TARGET EGL::EGL)
24
+ add_library(EGL::EGL UNKNOWN IMPORTED)
25
+diff -rup xbmc-19.5-Matrix.orig/xbmc/windowing/X11/GLContextEGL.h xbmc-19.5-Matrix/xbmc/windowing/X11/GLContextEGL.h
26
+--- xbmc-19.5-Matrix.orig/xbmc/windowing/X11/GLContextEGL.h 2022-12-24 10:29:16.000000000 +0100
27
++++ xbmc-19.5-Matrix/xbmc/windowing/X11/GLContextEGL.h 2023-01-02 10:04:44.765337785 +0100
28
+@@ -13,7 +13,11 @@
29
+ #include "threads/CriticalSection.h"
30
+
31
+ #include <EGL/eglext.h>
32
++#ifdef HAVE_EGLEXTANGLE
33
++#include <EGL/eglext_angle.h>
34
++#else
35
+ #include <EGL/eglextchromium.h>
36
++#endif
37
+ #include <X11/Xutil.h>
38
+
39
+ class CGLContextEGL : public CGLContext
40