From 80aceda9bb3fde41827cb35bec98ba523a095b0f Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Sat, 6 Jun 2009 21:55:05 +0100 Subject: [PATCH] [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. --- tests/conform/test-blend-strings.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/conform/test-blend-strings.c b/tests/conform/test-blend-strings.c index 12ada130f..14b7fbcc0 100644 --- a/tests/conform/test-blend-strings.c +++ b/tests/conform/test-blend-strings.c @@ -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);