[cogl/fosdem-2012: 5/6] stash: assume RGB buffers for wayland buffers
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/fosdem-2012: 5/6] stash: assume RGB buffers for wayland buffers
- Date: Tue, 17 Jan 2012 14:30:10 +0000 (UTC)
commit 8eb64873821b99623d1c2a1d85b1ef1b1febd6f1
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 97e449c..001229d 100644
--- a/cogl/cogl-texture-2d.c
+++ b/cogl/cogl-texture-2d.c
@@ -552,7 +552,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]