summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelplaceinfo.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2013-06-28 15:26:18 -0400
committerNat Goodspeed <nat@lindenlab.com>2013-06-28 15:26:18 -0400
commitc08b60ac6fee74f613ed3f5f8702291ed1c2376f (patch)
tree9ee7649080868dbb73766e8cd89720f364fe08cb /indra/newview/llpanelplaceinfo.cpp
parent4a9b688b4d46f67e1b00e04ebe972470b61e560a (diff)
CHOP-959: Streamline processing for --graphicslevel switch.
Use map-to in cmd_line.xml to inform the command-line processor that the target variable for --graphicslevel is RenderQualityPerformance. That lets us eliminate clunky llappviewer.cpp switch from '0' to 0, etc. Moreover, previous switch statement only accepted 0 - 3, whereas LLFeatureManager::setGraphicsLevel() actually accepts 0 - 6. Introduce LLFeatureManager::isValidGraphicsLevel() and use that to validate. Replace switch statement in setGraphicsLevel() mapping int constants to string literals with static vector of level names, using same data for mapping as for validating level numbers.
Diffstat (limited to 'indra/newview/llpanelplaceinfo.cpp')
0 files changed, 0 insertions, 0 deletions