mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
[cogl] Give the default (fallback) texture a format of RGBA_8888_PRE
Previously this was RGBA_8888. It souldn't really make a difference but for consistency we expect almost all textures in use to have an internaly premultiplied pixel format.
This commit is contained in:
parent
4680b34046
commit
30f13cafc5
@ -149,18 +149,18 @@ cogl_create_context ()
|
||||
cogl_texture_new_from_data (1, /* width */
|
||||
1, /* height */
|
||||
COGL_TEXTURE_NO_SLICING,
|
||||
COGL_PIXEL_FORMAT_RGBA_8888, /* data format */
|
||||
COGL_PIXEL_FORMAT_RGBA_8888_PRE, /* data format */
|
||||
/* internal format */
|
||||
COGL_PIXEL_FORMAT_RGBA_8888,
|
||||
COGL_PIXEL_FORMAT_RGBA_8888_PRE,
|
||||
0, /* auto calc row stride */
|
||||
default_texture_data);
|
||||
_context->default_gl_texture_rect_tex =
|
||||
cogl_texture_new_from_data (1, /* width */
|
||||
1, /* height */
|
||||
COGL_TEXTURE_NO_SLICING,
|
||||
COGL_PIXEL_FORMAT_RGBA_8888, /* data format */
|
||||
COGL_PIXEL_FORMAT_RGBA_8888_PRE, /* data format */
|
||||
/* internal format */
|
||||
COGL_PIXEL_FORMAT_RGBA_8888,
|
||||
COGL_PIXEL_FORMAT_RGBA_8888_PRE,
|
||||
0, /* auto calc row stride */
|
||||
default_texture_data);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user