aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/linux_tools/wrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/linux_tools/wrapper.sh')
-rwxr-xr-xlinden/indra/newview/linux_tools/wrapper.sh10
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.
20export 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
62SCRIPTSRC=`readlink -f "$0" || echo "$0"` 64SCRIPTSRC=`readlink -f "$0" || echo "$0"`
63RUN_PATH=`dirname "${SCRIPTSRC}" || echo .` 65RUN_PATH=`dirname "${SCRIPTSRC}" || echo .`
66echo "Running from ${RUN_PATH}"
64cd "${RUN_PATH}" 67cd "${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.
73if [ "${LD_LIBRARY_PATH+isset}" = "isset" ]; then
74 export SAVED_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}"
75fi
68 76
69if [ -n "$LL_TCMALLOC" ]; then 77if [ -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'