mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
test-sub-texture: Request texture data in premult format
When requesting the texture data to test that we get back what we uploaded, we need to ask for it in a premult format otherwise it will get converted and the test will fail. This was working for the GL driver because of a bug where it would fail to do the conversion. Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
parent
39c6bf59cb
commit
5928cade0b
@ -271,7 +271,7 @@ validate_result (TestState *state)
|
||||
/* Get the texture data */
|
||||
p = texture_data = g_malloc (256 * 256 * 4);
|
||||
cogl_texture_get_data (COGL_TEXTURE (test_tex),
|
||||
COGL_PIXEL_FORMAT_RGBA_8888,
|
||||
COGL_PIXEL_FORMAT_RGBA_8888_PRE,
|
||||
256 * 4, texture_data);
|
||||
|
||||
/* Verify the texture data */
|
||||
|
Loading…
Reference in New Issue
Block a user