blender-softwaregl 713 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. BF_DIST_BIN=$(dirname "$0")
  3. BF_PROGRAM="blender" # BF_PROGRAM=$(basename "$0")-bin
  4. LD_LIBRARY_PATH=${BF_DIST_BIN}/lib:${LD_LIBRARY_PATH}
  5. if [ -n "$LD_LIBRARYN32_PATH" ]; then
  6. LD_LIBRARYN32_PATH=${BF_DIST_BIN}/lib:${LD_LIBRARYN32_PATH}
  7. fi
  8. if [ -n "$LD_LIBRARYN64_PATH" ]; then
  9. LD_LIBRARYN64_PATH=${BF_DIST_BIN}/lib:${LD_LIBRARYN64_PATH}
  10. fi
  11. if [ -n "$LD_LIBRARY_PATH_64" ]; then
  12. LD_LIBRARY_PATH_64=${BF_DIST_BIN}/lib:${LD_LIBRARY_PATH_64}
  13. fi
  14. # Workaround for half-transparent windows when compiz is enabled
  15. XLIB_SKIP_ARGB_VISUALS=1
  16. export LD_LIBRARY_PATH LD_LIBRARYN32_PATH LD_LIBRARYN64_PATH LD_LIBRARY_PATH_64 LD_PRELOAD XLIB_SKIP_ARGB_VISUALS
  17. exec "$BF_DIST_BIN/$BF_PROGRAM" ${1+"$@"}