[cogl] Fix build on big-endian



commit 9246286846d0428b03e646b2f5ec14f0eff4edc6
Author: Emilio Pozuelo Monfort <pochu27 gmail com>
Date:   Mon Oct 14 21:21:02 2013 +0200

    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 <neil linux intel com>

 cogl/cogl-texture-2d.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-texture-2d.c b/cogl/cogl-texture-2d.c
index 93a011f..fbf836e 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;


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