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



commit e66498ae181f90b84f70104ac85b1ad18d9b6e4d
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]