[cogl/fosdem-2012: 17/17] stash: assume RGB buffers for wayland buffers
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/fosdem-2012: 17/17] stash: assume RGB buffers for wayland buffers
- Date: Wed, 4 Jan 2012 20:57:47 +0000 (UTC)
commit cc75fc9295920babc74131e79e342c170e5d779d
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]