diff options
author | prep <none@none> | 2012-02-17 11:01:48 -0500 |
---|---|---|
committer | prep <none@none> | 2012-02-17 11:01:48 -0500 |
commit | 399d0da9ef5802e85894e8d7e6e52e893653e24c (patch) | |
tree | 318652cec6d49f754c3ff90c460d6e6c138e647d /indra | |
parent | d4f71fd29da06e3f3c0ca39d611196b11baf62b7 (diff) |
Path-317: debug option to enable vbo rendering of navmeshes
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/app_settings/settings.xml | 12 | ||||
-rw-r--r-- | indra/newview/llfloaterpathfindingconsole.cpp | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 631e45d0ec..331ae02223 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -13494,5 +13494,17 @@ <key>Value</key> <integer>6</integer> </map> + <key>EnableVBOForNavMeshVisualization</key> + <map> + <key>Comment</key> + <string>Enable the use of VBOs for navmesh visualization.</string> + <key>Persist</key> + <integer>1</integer> + <key>Type</key> + <string>Boolean</string> + <key>Value</key> + <integer>0</integer> + </map> + </map> </llsd> diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp index c54f6a1ffe..5db052e448 100644 --- a/indra/newview/llfloaterpathfindingconsole.cpp +++ b/indra/newview/llfloaterpathfindingconsole.cpp @@ -397,7 +397,7 @@ void LLFloaterPathfindingConsole::setHasNavMeshReceived() --mNavMeshCnt;
if ( mNavMeshCnt == 0 )
{
- LLPathingLib::getInstance()->stitchNavMeshes();
+ LLPathingLib::getInstance()->stitchNavMeshes( gSavedSettings.getBOOL("EnableVBOForNavMeshVisualization") );
}
}
|