mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 03:50:47 -05: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
f5a8e693c8
commit
238e590606
@ -149,18 +149,18 @@ cogl_create_context ()
|
|||||||
cogl_texture_new_from_data (1, /* width */
|
cogl_texture_new_from_data (1, /* width */
|
||||||
1, /* height */
|
1, /* height */
|
||||||
COGL_TEXTURE_NO_SLICING,
|
COGL_TEXTURE_NO_SLICING,
|
||||||
COGL_PIXEL_FORMAT_RGBA_8888, /* data format */
|
COGL_PIXEL_FORMAT_RGBA_8888_PRE, /* data format */
|
||||||
/* internal format */
|
/* internal format */
|
||||||
COGL_PIXEL_FORMAT_RGBA_8888,
|
COGL_PIXEL_FORMAT_RGBA_8888_PRE,
|
||||||
0, /* auto calc row stride */
|
0, /* auto calc row stride */
|
||||||
default_texture_data);
|
default_texture_data);
|
||||||
_context->default_gl_texture_rect_tex =
|
_context->default_gl_texture_rect_tex =
|
||||||
cogl_texture_new_from_data (1, /* width */
|
cogl_texture_new_from_data (1, /* width */
|
||||||
1, /* height */
|
1, /* height */
|
||||||
COGL_TEXTURE_NO_SLICING,
|
COGL_TEXTURE_NO_SLICING,
|
||||||
COGL_PIXEL_FORMAT_RGBA_8888, /* data format */
|
COGL_PIXEL_FORMAT_RGBA_8888_PRE, /* data format */
|
||||||
/* internal format */
|
/* internal format */
|
||||||
COGL_PIXEL_FORMAT_RGBA_8888,
|
COGL_PIXEL_FORMAT_RGBA_8888_PRE,
|
||||||
0, /* auto calc row stride */
|
0, /* auto calc row stride */
|
||||||
default_texture_data);
|
default_texture_data);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user