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