root / branches / gvSIG_19_ext3D_osgVP_2_2_0 / binaries / linux / 3D / detect_videodriver.sh @ 32676
History | View | Annotate | Download (410 Bytes)
1 |
echo "Detecting video driver..."; |
---|---|
2 |
for dri in `glxinfo | grep rendering | awk '{ print $3 }'` |
3 |
do |
4 |
if [ "$dri" = "Yes" ]; then |
5 |
echo "DRI active" |
6 |
else |
7 |
echo "DRI OFF 3D Extension could not work!!" |
8 |
break |
9 |
fi |
10 |
|
11 |
done |
12 |
for driver in `glxinfo | grep renderer | awk '{ print $4 }'` |
13 |
do |
14 |
echo "You are using driver" $driver; |
15 |
if [ "$driver" = "Mesa" ]; then |
16 |
export LD_PRELOAD=$(find /usr/lib -type f -name libGL.*) |
17 |
fi |
18 |
done |
19 |
|