/[packages]/cauldron/opengl-games-utils/current/SOURCES/opengl-game-functions.sh
ViewVC logotype

Annotation of /cauldron/opengl-games-utils/current/SOURCES/opengl-game-functions.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 95989 - (hide annotations) (download) (as text)
Sun May 8 03:03:07 2011 UTC (12 years, 11 months ago) by ahmad
File MIME type: application/x-sh
File size: 611 byte(s)
imported package opengl-games-utils
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     }

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30