Merge lp:~azzar1/unity/lp-1491913 into lp:unity

Proposed by Andrea Azzarone
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: no longer in the source branch.
Merged at revision: 4006
Proposed branch: lp:~azzar1/unity/lp-1491913
Merge into: lp:unity
Diff against target: 20 lines (+6/-1)
1 file modified
plugins/unityshell/src/unityshell.cpp (+6/-1)
To merge this branch: bzr merge lp:~azzar1/unity/lp-1491913
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+270349@code.launchpad.net

Description of the change

From the bug proposal: "While discussing bug #1491555, my colleague Brian Paul suggested that in addition to forcing low gfx mode with UNITY_LOW_GFX_MODE = 1, it would also be helpful to force it out of low gfx mode with UNITY_LOW_GFX_MODE = 0."

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/unityshell/src/unityshell.cpp'
2--- plugins/unityshell/src/unityshell.cpp 2015-05-22 13:20:44 +0000
3+++ plugins/unityshell/src/unityshell.cpp 2015-09-08 03:00:07 +0000
4@@ -290,10 +290,15 @@
5 renderer.find("LLVM") != std::string::npos ||
6 renderer.find("on softpipe") != std::string::npos ||
7 (getenv("UNITY_LOW_GFX_MODE") != NULL && atoi(getenv("UNITY_LOW_GFX_MODE")) == 1) ||
8- optionGetLowGraphicsMode())
9+ optionGetLowGraphicsMode())
10 {
11 unity_settings_.SetLowGfxMode(true);
12 }
13+
14+ if (getenv("UNITY_LOW_GFX_MODE") != NULL && atoi(getenv("UNITY_LOW_GFX_MODE")) == 0)
15+ {
16+ unity_settings_.SetLowGfxMode(false);
17+ }
18 #endif
19
20 if (!failed)