svn merge -r41847:41899 ^/trunk/blender
[blender.git] / release / bin / blender-softwaregl
1 #!/bin/sh
2 BF_DIST_BIN=`dirname "$0"`
3 BF_PROGRAM="blender" # BF_PROGRAM=`basename "$0"`-bin
4 exitcode=0
5
6 LD_LIBRARY_PATH=${BF_DIST_BIN}/lib:${LD_LIBRARY_PATH}
7
8 if [ -n "$LD_LIBRARYN32_PATH" ]; then
9     LD_LIBRARYN32_PATH=${BF_DIST_BIN}/lib:${LD_LIBRARYN32_PATH}
10 fi
11 if [ -n "$LD_LIBRARYN64_PATH" ]; then
12     LD_LIBRARYN64_PATH=${BF_DIST_BIN}/lib:${LD_LIBRARYN64_PATH}
13 fi
14 if [ -n "$LD_LIBRARY_PATH_64" ]; then
15     LD_LIBRARY_PATH_64=${BF_DIST_BIN}/lib:${LD_LIBRARY_PATH_64}
16 fi
17
18 # Workaround for half-transparent windows when compiz is enabled
19 XLIB_SKIP_ARGB_VISUALS=1
20
21 export LD_LIBRARY_PATH LD_LIBRARYN32_PATH LD_LIBRARYN64_PATH LD_LIBRARY_PATH_64 LD_PRELOAD XLIB_SKIP_ARGB_VISUALS
22
23 "$BF_DIST_BIN/$BF_PROGRAM" ${1+"$@"}
24 exitcode=$?
25 exit $exitcode