diff options
Diffstat (limited to 'linden/indra/newview/linux_tools/wrapper.sh')
-rwxr-xr-x | linden/indra/newview/linux_tools/wrapper.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/linden/indra/newview/linux_tools/wrapper.sh b/linden/indra/newview/linux_tools/wrapper.sh index 587c56f..070d45a 100755 --- a/linden/indra/newview/linux_tools/wrapper.sh +++ b/linden/indra/newview/linux_tools/wrapper.sh | |||
@@ -17,7 +17,9 @@ | |||
17 | ## on some hardware. Disabling this option may cause BETTER PERFORMANCE but | 17 | ## on some hardware. Disabling this option may cause BETTER PERFORMANCE but |
18 | ## may also cause CRASHES and hangs on some unstable combinations of drivers | 18 | ## may also cause CRASHES and hangs on some unstable combinations of drivers |
19 | ## and hardware. | 19 | ## and hardware. |
20 | export LL_GL_BASICEXT=x | 20 | ## NOTE: This is 'off' for WindLight to help testing. Hopefully it's not |
21 | ## really needed any more anyway. | ||
22 | #export LL_GL_BASICEXT=x | ||
21 | 23 | ||
22 | ## - Avoids *all* optional OpenGL extensions. This is the safest and least- | 24 | ## - Avoids *all* optional OpenGL extensions. This is the safest and least- |
23 | ## exciting option. Enable this if you experience stability issues, and | 25 | ## exciting option. Enable this if you experience stability issues, and |
@@ -61,10 +63,16 @@ fi | |||
61 | 63 | ||
62 | SCRIPTSRC=`readlink -f "$0" || echo "$0"` | 64 | SCRIPTSRC=`readlink -f "$0" || echo "$0"` |
63 | RUN_PATH=`dirname "${SCRIPTSRC}" || echo .` | 65 | RUN_PATH=`dirname "${SCRIPTSRC}" || echo .` |
66 | echo "Running from ${RUN_PATH}" | ||
64 | cd "${RUN_PATH}" | 67 | cd "${RUN_PATH}" |
65 | 68 | ||
66 | # Re-register the secondlife:// protocol handler every launch, for now. | 69 | # Re-register the secondlife:// protocol handler every launch, for now. |
67 | ./register_secondlifeprotocol.sh | 70 | ./register_secondlifeprotocol.sh |
71 | ## Before we mess with LD_LIBRARY_PATH, save the old one to restore for | ||
72 | ## subprocesses that care. | ||
73 | if [ "${LD_LIBRARY_PATH+isset}" = "isset" ]; then | ||
74 | export SAVED_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" | ||
75 | fi | ||
68 | 76 | ||
69 | if [ -n "$LL_TCMALLOC" ]; then | 77 | if [ -n "$LL_TCMALLOC" ]; then |
70 | tcmalloc_libs='/usr/lib/libtcmalloc.so.0 /usr/lib/libstacktrace.so.0 /lib/libpthread.so.0' | 78 | tcmalloc_libs='/usr/lib/libtcmalloc.so.0 /usr/lib/libstacktrace.so.0 /lib/libpthread.so.0' |