diff options
| author | Eleni Maria Stea <elenimaria.stea@canonical.com> | 2017-01-09 15:08:57 +0000 |
|---|---|---|
| committer | Bileto Bot <ci-train-bot@canonical.com> | 2017-01-09 15:08:57 +0000 |
| commit | 7dc35711b556d2ba863e5eb61ccc153600b1a36a (patch) | |
| tree | 921e3e5024fa7edf471867d1cd3fdbedba2d11f1 /unity-shared | |
| parent | c9ea395d1e6218fbd709fa32256a03b3905efafc (diff) | |
| parent | a47108fb79f69c7d0d9eb5e94a0a2138f1667968 (diff) | |
shouldn't create blur rectangles when there's no blur, skips the blur rects processing in low gfx.
Approved by: Marco Trevisan (TreviƱo) (bzr r4214)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/BackgroundEffectHelper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unity-shared/BackgroundEffectHelper.cpp b/unity-shared/BackgroundEffectHelper.cpp index 2036b6b7c..b998f7b77 100644 --- a/unity-shared/BackgroundEffectHelper.cpp +++ b/unity-shared/BackgroundEffectHelper.cpp @@ -147,6 +147,9 @@ bool BackgroundEffectHelper::UpdateOwnerGeometry() void BackgroundEffectHelper::UpdateBlurGeometries() { + if (blur_type == BLUR_NONE) + return; + int radius = GetBlurRadius(); blur_geometries_.clear(); blur_geometries_.reserve(registered_list_.size()); |
