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

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