[mutter] backends/native: Move functions out of HAVE_EGL_DEVICE



commit c85f322b203b7bf216e8ec3bb1da69de43310ff4
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Oct 9 13:39:50 2017 +0200

    backends/native: Move functions out of HAVE_EGL_DEVICE
    
    Those are now used in common code, so should be taken out of
    the ifdef. Fixes compilation without EGL streams.

 src/backends/native/meta-renderer-native.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c
index a710363..66c254f 100644
--- a/src/backends/native/meta-renderer-native.c
+++ b/src/backends/native/meta-renderer-native.c
@@ -1792,6 +1792,7 @@ meta_renderer_native_create_surface_egl_device (CoglOnscreen       *onscreen,
 
   return TRUE;
 }
+#endif /* HAVE_EGL_DEVICE */
 
 static gboolean
 init_dumb_fb (MetaDumbBuffer  *dumb_fb,
@@ -1928,7 +1929,6 @@ release_dumb_fb (MetaDumbBuffer *dumb_fb,
   };
   drmIoctl (kms_fd, DRM_IOCTL_MODE_DESTROY_DUMB, &destroy_arg);
 }
-#endif /* HAVE_EGL_DEVICE */
 
 static gboolean
 meta_renderer_native_init_onscreen (CoglOnscreen *onscreen,


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