From 037f7a29d160a60224799dccaf082b523f3f2634 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 9 Jun 2010 12:18:53 +0100 Subject: [PATCH] test-cogl-texture-rectangle: Fix the size allocated for reading data The test was only allocating enough space for 256 rows of pixels but it was then reading 384 so it would randomly fail. --- tests/conform/test-cogl-texture-rectangle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conform/test-cogl-texture-rectangle.c b/tests/conform/test-cogl-texture-rectangle.c index 81b555876..f8a03baf0 100644 --- a/tests/conform/test-cogl-texture-rectangle.c +++ b/tests/conform/test-cogl-texture-rectangle.c @@ -141,7 +141,7 @@ validate_result (TestState *state) guint8 *data, *p; int x, y; - p = data = g_malloc (512 * 256 * 4); + p = data = g_malloc (512 * 384 * 4); cogl_read_pixels (0, 0, 512, 384, COGL_READ_PIXELS_COLOR_BUFFER,