[mutter] egl: Don't require eglGetPlatformDisplayEXT



commit e07524280199f3befee4f28729daf64b65b119e6
Author: Mario Sanchez Prada <mario endlessm com>
Date:   Tue Aug 22 17:45:19 2017 +0200

    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 files changed, 1 insertions(+), 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]