From 07e6219704b6a0a8432ee6ae47ad54c83f734dbb Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Thu, 24 Jul 2014 15:40:19 +0200 Subject: [PATCH] lightbox: Do not assume GLSL is available Some hardware does not support it causing crashes in cogl during paint. https://bugzilla.gnome.org/show_bug.cgi?id=733623 --- js/ui/lightbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/lightbox.js b/js/ui/lightbox.js index 4b07debad..2188b23b3 100644 --- a/js/ui/lightbox.js +++ b/js/ui/lightbox.js @@ -105,8 +105,8 @@ const Lightbox = new Lang.Class({ this._container = container; this._children = container.get_children(); this._fadeFactor = params.fadeFactor; - this._radialEffect = params.radialEffect; - if (params.radialEffect) + this._radialEffect = Clutter.feature_available(Clutter.FeatureFlags.SHADERS_GLSL) && params.radialEffect; + if (this._radialEffect) this.actor = new RadialShaderQuad({ x: 0, y: 0, reactive: params.inhibitEvents });