From 9bbb8a79c354cd10da13b8b88d7a7343be92de96 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Mon, 14 Oct 2013 21:21:02 +0200 Subject: [PATCH] Fix build on big-endian Commit 50d1285b updated the wl_shm enum values but left one out. Update it to fix the build on big-endian. https://bugzilla.gnome.org/show_bug.cgi?id=710135 Reviewed-by: Neil Roberts (cherry picked from commit 9246286846d0428b03e646b2f5ec14f0eff4edc6) --- cogl/cogl-texture-2d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl-texture-2d.c b/cogl/cogl-texture-2d.c index 4147746c2..60b932b9d 100644 --- a/cogl/cogl-texture-2d.c +++ b/cogl/cogl-texture-2d.c @@ -315,7 +315,7 @@ cogl_wayland_texture_2d_new_from_buffer (CoglContext *ctx, case WL_SHM_FORMAT_ARGB8888: format = COGL_PIXEL_FORMAT_ARGB_8888_PRE; break; - case WL_SHM_FORMAT_XRGB32: + case WL_SHM_FORMAT_XRGB8888: format = COGL_PIXEL_FORMAT_ARGB_8888; internal_format = COGL_PIXEL_FORMAT_RGB_888; break;