[cogl] test-sub-texture: Request texture data in premult format
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] test-sub-texture: Request texture data in premult format
- Date: Thu, 23 Feb 2012 18:30:53 +0000 (UTC)
commit 5928cade0b0615bd8a4766fdf0976a3b2ff8a9cb
Author: Neil Roberts <neil linux intel com>
Date: Thu Feb 23 18:07:55 2012 +0000
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>
tests/conform/test-sub-texture.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/conform/test-sub-texture.c b/tests/conform/test-sub-texture.c
index f25190f..944f2ae 100644
--- a/tests/conform/test-sub-texture.c
+++ b/tests/conform/test-sub-texture.c
@@ -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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]