Always assume GLSL is supported

The support for GLSL has been advertised as unconditionally supported by
mutter for a while, and has now lost the 'GLSL' feature completely. Lets
remove the checks.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1985>
This commit is contained in:
Jonas Ådahl
2021-09-21 16:35:32 +02:00
parent 1bf446b373
commit 563437de91
4 changed files with 1 additions and 65 deletions

View File

@ -129,7 +129,7 @@ var Lightbox = GObject.registerClass({
this._container = container;
this._children = container.get_children();
this._fadeFactor = params.fadeFactor;
this._radialEffect = Clutter.feature_available(Clutter.FeatureFlags.SHADERS_GLSL) && params.radialEffect;
this._radialEffect = params.radialEffect;
if (this._radialEffect)
this.add_effect(new RadialShaderEffect({ name: 'radial' }));