1 |
ahmad |
95989 |
# check if DRI is available, show an error and exit if it isn't |
2 |
|
|
function checkDriOK () |
3 |
|
|
{ |
4 |
|
|
if [ "`glxinfo | grep "direct rendering: " | head -n 1 | cut -d " " -f 3`" != Yes ] || |
5 |
|
|
glxinfo | grep -q "OpenGL renderer string: Software Rasterizer"; then |
6 |
|
|
zenity --error --text="Your system currently is not capable of hardware \ |
7 |
|
|
accelerated 3D. Therefore $1 cannot run. |
8 |
|
|
|
9 |
|
|
Usually the cause of this error is that there are no Free Software drivers \ |
10 |
|
|
for your graphics card, please contact your graphics card manufacturer and \ |
11 |
|
|
kindly ask them to provide Free Software support for your card." |
12 |
|
|
exit 1; |
13 |
|
|
fi |
14 |
|
|
} |