[test-blend-strings] Explicitly request RGBA_888 tex format for test textures
This test assumes that the textures will be stored internally with exactly the color given so that specific texture combining arithmetic can be tested. Using COGL_PIXEL_FORMAT_ANY allows Cogl to internally premultiply the textures, so we have to explicitly request an unmultiplied format.
This commit is contained in:
parent
a9b011f3ed
commit
80aceda9bb
@ -172,11 +172,13 @@ make_texture (guint32 color)
|
||||
*(--p) = r;
|
||||
}
|
||||
|
||||
/* Note: we don't use COGL_PIXEL_FORMAT_ANY for the internal format here
|
||||
* since we don't want to allow Cogl to premultiply our data. */
|
||||
tex = cogl_texture_new_from_data (QUAD_WIDTH,
|
||||
QUAD_WIDTH,
|
||||
COGL_TEXTURE_NONE,
|
||||
COGL_PIXEL_FORMAT_RGBA_8888,
|
||||
COGL_PIXEL_FORMAT_ANY,
|
||||
COGL_PIXEL_FORMAT_RGBA_8888,
|
||||
QUAD_WIDTH * 4,
|
||||
tex_data);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user