~hikiko/unity/unity.lowgfx-2017

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/unityshell.cpp

  • Committer: Eleni Maria Stea
  • Date: 2017-01-31 12:20:28 UTC
  • Revision ID: elenimaria.stea@canonical.com-20170131122028-5i3o5br0n0xav801
made sure that low_gfx is always updated real-time

Show diffs side-by-side

added added

removed removed

Lines of Context:
297
297
          renderer.find("Mesa X11") != std::string::npos ||
298
298
          renderer.find("llvmpipe") != std::string::npos ||
299
299
          renderer.find("softpipe") != std::string::npos ||
300
 
          (getenv("UNITY_LOW_GFX_MODE") != NULL && atoi(getenv("UNITY_LOW_GFX_MODE")) == 1)
 
300
    (getenv("UNITY_LOW_GFX_MODE") != NULL && atoi(getenv("UNITY_LOW_GFX_MODE")) == 1)
301
301
     )
302
302
  {
303
303
      unity_settings_.low_gfx = true;