[cogl/fosdem-2012: 19/19] stash: assume RGB buffers for wayland buffers



commit 55b37d4e77eb793926d1f0c2150c058e37d54f4e
Author: Robert Bragg <robert linux intel com>
Date:   Wed Jan 4 15:38:44 2012 +0000

    stash: assume RGB buffers for wayland buffers
    
    until we have a mechanism to determine if a buffer has an alpha
    component we consider all buffers to be RGB otherwise RGBX buffers with
    a junk X component can cause blending artefacts.

 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 ba4c6d0..afa5cb9 100644
--- a/cogl/cogl-texture-2d.c
+++ b/cogl/cogl-texture-2d.c
@@ -558,7 +558,7 @@ cogl_wayland_texture_2d_new_from_buffer (CoglContext *ctx,
       return _cogl_egl_texture_2d_new_from_image (ctx,
                                                   buffer->width,
                                                   buffer->height,
-                                                  COGL_PIXEL_FORMAT_ARGB_8888_PRE,
+                                                  COGL_PIXEL_FORMAT_RGB_888,
                                                   image,
                                                   error);
     }



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