mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
Fix the alpha value in the default texture data
When a layer is added to a pipeline without setting a texture it ends up sampling from a default 1x1 texture which is meant to be solid white. However for some reason we were creating the texture with 0 opacity which is effectively an invalid premultiplied colour. This would make the blending behave oddly if it was used. https://bugzilla.gnome.org/show_bug.cgi?id=702570 Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 2ffc77565fb6395b986d3274f8bdb6eee6addbf9)
This commit is contained in:
parent
7b80ddcef9
commit
e926c1dab4
@ -136,7 +136,7 @@ cogl_context_new (CoglDisplay *display,
|
|||||||
CoglError **error)
|
CoglError **error)
|
||||||
{
|
{
|
||||||
CoglContext *context;
|
CoglContext *context;
|
||||||
GLubyte default_texture_data[] = { 0xff, 0xff, 0xff, 0x0 };
|
uint8_t default_texture_data[] = { 0xff, 0xff, 0xff, 0xff };
|
||||||
CoglBitmap *default_texture_bitmap;
|
CoglBitmap *default_texture_bitmap;
|
||||||
const CoglWinsysVtable *winsys;
|
const CoglWinsysVtable *winsys;
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user