test-npot-texture: Add some verbose notes
This just adds some verbose output stating whether Cogl thinks that NPOT textures are supported.
This commit is contained in:
parent
8f1edcb6ed
commit
b869e87c86
@ -165,6 +165,14 @@ make_texture (void)
|
|||||||
|
|
||||||
g_free (tex_data);
|
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 */
|
/* The texture should be sliced unless NPOTs are supported */
|
||||||
g_assert (cogl_features_available (COGL_FEATURE_TEXTURE_NPOT)
|
g_assert (cogl_features_available (COGL_FEATURE_TEXTURE_NPOT)
|
||||||
? !cogl_texture_is_sliced (tex)
|
? !cogl_texture_is_sliced (tex)
|
||||||
@ -182,6 +190,14 @@ test_npot_texture (TestConformSimpleFixture *fixture,
|
|||||||
ClutterActor *group;
|
ClutterActor *group;
|
||||||
guint idle_source;
|
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.frame = 0;
|
||||||
|
|
||||||
state.texture = make_texture ();
|
state.texture = make_texture ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user