[cogl/fosdem-2012: 5/5] stash: assume RGB buffers for wayland buffers
- From: Neil Roberts <nroberts src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [cogl/fosdem-2012: 5/5] stash: assume RGB buffers for wayland buffers
 
- Date: Mon,  9 Jan 2012 19:08:52 +0000 (UTC)
 
commit 1789f20a5ecad3123d97b6f3543e8dd19f1c8692
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]