Created
May 3, 2014 12:09
-
-
Save Mailaender/720e592bbfe3dff91048 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# check if DRI is available, show an error and exit if it isn't | |
function checkDriOK () | |
{ | |
if [ `glxinfo | grep "direct rendering: " | head -n 1 | cut -d " " -f 3` != Yes ]; then | |
zenity --error --text="Your system currently is not capable of hardware \ | |
accelerated 3D. Therefore $1 cannot run. | |
Usually the cause of this error is that there are no Free Software drivers \ | |
for your graphics card, please contact your graphics card manufacturer and \ | |
kindly ask them to provide Free Software support for your card." | |
exit 1; | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment