Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
8b179e31
Commit
8b179e31
authored
4 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Updates to linux wrapper script to fix mesa driver usage and enable threaded GL on mesa
parent
fff9a691
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/linux_tools/wrapper.sh
+18
-15
18 additions, 15 deletions
indra/newview/linux_tools/wrapper.sh
with
18 additions
and
15 deletions
indra/newview/linux_tools/wrapper.sh
+
18
−
15
View file @
8b179e31
...
...
@@ -56,23 +56,23 @@ fi
#export LL_WRAPPER='valgrind --smc-check=all --error-limit=no --log-file=secondlife.vg --leak-check=full --suppressions=/usr/lib/valgrind/glibc-2.5.supp --suppressions=secondlife-i686.supp'
## - Avoids an often-buggy X feature that doesn't really benefit us anyway.
export
SDL_VIDEO_X11_DGAMOUSE
=
0
## - Works around a problem with misconfigured 64-bit systems not finding GL
I386_MULTIARCH
=
"
$(
dpkg-architecture
-ai386
-qDEB_HOST_MULTIARCH
2>/dev/null
)
"
MULTIARCH_ERR
=
$?
if
[
$MULTIARCH_ERR
-eq
0
]
;
then
echo
'Multi-arch support detected.'
MULTIARCH_GL_DRIVERS
=
"/usr/lib/
${
I386_MULTIARCH
}
/dri"
export
LIBGL_DRIVERS_PATH
=
"
${
LIBGL_DRIVERS_PATH
}
:
${
MULTIARCH_GL_DRIVERS
}
:/usr/lib64/dri:/usr/lib32/dri:/usr/lib/dri"
else
export
LIBGL_DRIVERS_PATH
=
"
${
LIBGL_DRIVERS_PATH
}
:/usr/lib64/dri:/usr/lib32/dri:/usr/lib/dri"
fi
#
export SDL_VIDEO_X11_DGAMOUSE=0
#
## - Works around a problem with misconfigured 64-bit systems not finding GL
#
I386_MULTIARCH="$(dpkg-architecture -ai386 -qDEB_HOST_MULTIARCH 2>/dev/null)"
#
MULTIARCH_ERR=$?
#
if [ $MULTIARCH_ERR -eq 0 ]; then
#
echo 'Multi-arch support detected.'
#
MULTIARCH_GL_DRIVERS="/usr/lib/${I386_MULTIARCH}/dri"
#
export LIBGL_DRIVERS_PATH="${LIBGL_DRIVERS_PATH}:${MULTIARCH_GL_DRIVERS}:/usr/lib64/dri:/usr/lib32/dri:/usr/lib/dri"
#
else
#
export LIBGL_DRIVERS_PATH="${LIBGL_DRIVERS_PATH}:/usr/lib64/dri:/usr/lib32/dri:/usr/lib/dri"
#
fi
## - The 'scim' GTK IM module widely crashes the viewer. Avoid it.
if
[
"
$GTK_IM_MODULE
"
=
"scim"
]
;
then
export
GTK_IM_MODULE
=
xim
fi
#
if [ "$GTK_IM_MODULE" = "scim" ]; then
#
export GTK_IM_MODULE=xim
#
fi
## - Automatically work around the ATI mouse cursor crash bug:
## (this workaround is disabled as most fglrx users do not see the bug)
...
...
@@ -80,6 +80,9 @@ fi
# export LL_ATI_MOUSE_CURSOR_BUG=x
#fi
## - Enable threaded mesa GL impl
export
mesa_glthread
=
true
## Nothing worth editing below this line.
##-------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment