kathenas / rpms / mutter

Forked from rpms/mutter 5 years ago
Clone

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

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