mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 13:22:15 +00:00
conform: Bail out GLSL-based tests
If we don't have GLSL support on the platform.
This commit is contained in:
parent
52ea1510a1
commit
a24ff882b6
@ -142,6 +142,9 @@ on_timeout (State *state)
|
||||
}
|
||||
else if (test_num == 3)
|
||||
{
|
||||
if (!clutter_feature_available (CLUTTER_FEATURE_SHADERS_GLSL))
|
||||
continue;
|
||||
|
||||
clutter_actor_hide (over_actor);
|
||||
|
||||
clutter_actor_add_effect_with_name (CLUTTER_ACTOR (state->stage),
|
||||
@ -153,6 +156,9 @@ on_timeout (State *state)
|
||||
}
|
||||
else if (test_num == 4)
|
||||
{
|
||||
if (!clutter_feature_available (CLUTTER_FEATURE_SHADERS_GLSL))
|
||||
continue;
|
||||
|
||||
clutter_actor_hide (over_actor);
|
||||
clutter_actor_remove_effect_by_name (CLUTTER_ACTOR (state->stage),
|
||||
"blur");
|
||||
|
@ -239,6 +239,9 @@ test_shader_effect (TestConformSimpleFixture *fixture,
|
||||
ClutterActor *stage;
|
||||
ClutterActor *rect;
|
||||
|
||||
if (!clutter_feature_available (CLUTTER_FEATURE_SHADERS_GLSL))
|
||||
return;
|
||||
|
||||
stage = clutter_stage_new ();
|
||||
|
||||
rect = make_actor (foo_old_shader_effect_get_type ());
|
||||
|
Loading…
Reference in New Issue
Block a user