From b869e87c86b73a8c09c5f509955a120978da7604 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 18 Nov 2009 17:16:38 +0000 Subject: [PATCH] test-npot-texture: Add some verbose notes This just adds some verbose output stating whether Cogl thinks that NPOT textures are supported. --- tests/conform/test-npot-texture.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/conform/test-npot-texture.c b/tests/conform/test-npot-texture.c index 69ede37a2..15968e072 100644 --- a/tests/conform/test-npot-texture.c +++ b/tests/conform/test-npot-texture.c @@ -165,6 +165,14 @@ make_texture (void) g_free (tex_data); + if (g_test_verbose ()) + { + if (cogl_texture_is_sliced (tex)) + g_print ("Texture is sliced\n"); + else + g_print ("Texture is not sliced\n"); + } + /* The texture should be sliced unless NPOTs are supported */ g_assert (cogl_features_available (COGL_FEATURE_TEXTURE_NPOT) ? !cogl_texture_is_sliced (tex) @@ -182,6 +190,14 @@ test_npot_texture (TestConformSimpleFixture *fixture, ClutterActor *group; guint idle_source; + if (g_test_verbose ()) + { + if (cogl_features_available (COGL_FEATURE_TEXTURE_NPOT)) + g_print ("NPOT textures are supported\n"); + else + g_print ("NPOT textures are not supported\n"); + } + state.frame = 0; state.texture = make_texture ();