From 969ad54feb89c44a6c089ad15b1812fbbd7bf5f2 Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Fri, 24 May 2019 14:38:10 +0200 Subject: [PATCH] cursor-renderer/native: Remove unnecessary endian check Both cases have the same content. https://gitlab.gnome.org/GNOME/mutter/merge_requests/526 --- src/backends/native/meta-cursor-renderer-native.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/backends/native/meta-cursor-renderer-native.c b/src/backends/native/meta-cursor-renderer-native.c index 6526d3d76..03f18e8b6 100644 --- a/src/backends/native/meta-cursor-renderer-native.c +++ b/src/backends/native/meta-cursor-renderer-native.c @@ -1335,21 +1335,12 @@ realize_cursor_sprite_from_wl_buffer_for_gpu (MetaCursorRenderer *renderer, switch (wl_shm_buffer_get_format (shm_buffer)) { -#if G_BYTE_ORDER == G_BIG_ENDIAN case WL_SHM_FORMAT_ARGB8888: gbm_format = GBM_FORMAT_ARGB8888; break; case WL_SHM_FORMAT_XRGB8888: gbm_format = GBM_FORMAT_XRGB8888; break; -#else - case WL_SHM_FORMAT_ARGB8888: - gbm_format = GBM_FORMAT_ARGB8888; - break; - case WL_SHM_FORMAT_XRGB8888: - gbm_format = GBM_FORMAT_XRGB8888; - break; -#endif default: g_warn_if_reached (); gbm_format = GBM_FORMAT_ARGB8888;