From 5fc3122dadf948c5594478a3eae7deef391c62fe Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 12 Jan 2011 16:59:37 +0000 Subject: [PATCH] test-cogl-shader-glsl: Disable the atlas for the hand texture Atlasing needs to be disabled for the hand texture so that it can work out the step value needed to fetch a neighbouring pixel in the blur shader. If the texture ends up in the atlas then the test can't know the actual size of the texture so it looks wrong. --- tests/interactive/test-cogl-shader-glsl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/interactive/test-cogl-shader-glsl.c b/tests/interactive/test-cogl-shader-glsl.c index 3c83e92e8..21ebe316e 100644 --- a/tests/interactive/test-cogl-shader-glsl.c +++ b/tests/interactive/test-cogl-shader-glsl.c @@ -328,7 +328,9 @@ test_cogl_shader_glsl_main (int argc, char *argv[]) file = g_build_filename (TESTS_DATADIR, "redhand.png", NULL); error = NULL; - redhand = cogl_texture_new_from_file (file, 0, COGL_PIXEL_FORMAT_ANY, + redhand = cogl_texture_new_from_file (file, + COGL_TEXTURE_NO_ATLAS, + COGL_PIXEL_FORMAT_ANY, &error); if (redhand == COGL_INVALID_HANDLE) g_error ("image load failed: %s", error->message);