mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
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);
|
||||
|
||||
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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user