mutter/mutter-no-mandatory-eglGetPlatformDisplayEXT.patch

44 lines
1.4 KiB
Diff

From e07524280199f3befee4f28729daf64b65b119e6 Mon Sep 17 00:00:00 2001
From: Mario Sanchez Prada <mario@endlessm.com>
Date: Tue, 22 Aug 2017 17:45:19 +0200
Subject: egl: Don't require eglGetPlatformDisplayEXT
Trying to unilaterally require eglGetPlatformDisplayEXT causes problems in
scenarios where this method is not available. Besides, this should only be
required on Wayland, so we can stop requiring it always and simply let the
eglGetPlatformDisplay() function error accordingly when needed.
https://bugzilla.gnome.org/show_bug.cgi?id=786619
---
src/backends/meta-egl.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/src/backends/meta-egl.c b/src/backends/meta-egl.c
index ec5a025..abf38c8 100644
--- a/src/backends/meta-egl.c
+++ b/src/backends/meta-egl.c
@@ -762,19 +762,12 @@ meta_egl_query_dma_buf_modifiers (MetaEgl *egl,
#define GET_EGL_PROC_ADDR(proc) \
egl->proc = (void *) eglGetProcAddress (#proc);
-#define GET_EGL_PROC_ADDR_REQUIRED(proc) \
- GET_EGL_PROC_ADDR(proc) \
- if (!egl->proc) \
- { \
- meta_fatal ("Failed to get proc address for '%s'\n", #proc); \
- }
-
static void
meta_egl_constructed (GObject *object)
{
MetaEgl *egl = META_EGL (object);
- GET_EGL_PROC_ADDR_REQUIRED (eglGetPlatformDisplayEXT);
+ GET_EGL_PROC_ADDR (eglGetPlatformDisplayEXT);
GET_EGL_PROC_ADDR (eglCreateImageKHR);
GET_EGL_PROC_ADDR (eglDestroyImageKHR);
--
cgit v0.12