Blame SOURCES/0001-EGL-Include-EGL-eglmesaext.h.patch

1a3082
From abfc64268d4135663fb46c5f3529cd5f082a5c20 Mon Sep 17 00:00:00 2001
1a3082
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
1a3082
Date: Sun, 20 Oct 2019 12:04:31 +0200
1a3082
Subject: [PATCH] EGL: Include EGL/eglmesaext.h
1a3082
1a3082
The eglext.h shipped by libglvnd does not include the Mesa extensions,
1a3082
unlike the header shipped in Mesa.
1a3082
1a3082
Fixes https://gitlab.gnome.org/GNOME/mutter/issues/876
1a3082
---
1a3082
 cogl/cogl/meson.build       | 2 +-
1a3082
 src/backends/meta-egl-ext.h | 1 +
1a3082
 src/backends/meta-egl.c     | 1 +
1a3082
 src/backends/meta-egl.h     | 1 +
1a3082
 4 files changed, 4 insertions(+), 1 deletion(-)
1a3082
1a3082
diff --git a/cogl/cogl/meson.build b/cogl/cogl/meson.build
1a3082
index cb940420a..8032669e4 100644
1a3082
--- a/cogl/cogl/meson.build
1a3082
+++ b/cogl/cogl/meson.build
1a3082
@@ -48,7 +48,7 @@ cogl_gl_header_h = configure_file(
1a3082
 built_headers += [cogl_gl_header_h]
1a3082
 
1a3082
 if have_egl
1a3082
-  cogl_egl_includes_string = '#include <EGL/egl.h>\n#include <EGL/eglext.h>'
1a3082
+  cogl_egl_includes_string = '#include <EGL/egl.h>\n#include <EGL/eglext.h>\n#include <EGL/eglmesaext.h>'
1a3082
 else
1a3082
   cogl_egl_includes_string = ''
1a3082
 endif
1a3082
diff --git a/src/backends/meta-egl-ext.h b/src/backends/meta-egl-ext.h
1a3082
index 8705e7d5b..db0b74f76 100644
1a3082
--- a/src/backends/meta-egl-ext.h
1a3082
+++ b/src/backends/meta-egl-ext.h
1a3082
@@ -29,6 +29,7 @@
1a3082
 
1a3082
 #include <EGL/egl.h>
1a3082
 #include <EGL/eglext.h>
1a3082
+#include <EGL/eglmesaext.h>
1a3082
 
1a3082
 /*
1a3082
  * This is a little different to the tests shipped with EGL implementations,
1a3082
diff --git a/src/backends/meta-egl.c b/src/backends/meta-egl.c
1a3082
index 8b953449a..a28eef4ca 100644
1a3082
--- a/src/backends/meta-egl.c
1a3082
+++ b/src/backends/meta-egl.c
1a3082
@@ -26,6 +26,7 @@
1a3082
 
1a3082
 #include <EGL/egl.h>
1a3082
 #include <EGL/eglext.h>
1a3082
+#include <EGL/eglmesaext.h>
1a3082
 #include <gio/gio.h>
1a3082
 #include <glib.h>
1a3082
 #include <glib-object.h>
1a3082
diff --git a/src/backends/meta-egl.h b/src/backends/meta-egl.h
1a3082
index ff37f124f..81b53b32d 100644
1a3082
--- a/src/backends/meta-egl.h
1a3082
+++ b/src/backends/meta-egl.h
1a3082
@@ -27,6 +27,7 @@
1a3082
 
1a3082
 #include <EGL/egl.h>
1a3082
 #include <EGL/eglext.h>
1a3082
+#include <EGL/eglmesaext.h>
1a3082
 #include <glib-object.h>
1a3082
 
1a3082
 #define META_EGL_ERROR meta_egl_error_quark ()
1a3082
-- 
1a3082
2.23.0
1a3082