Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:Staging:adi:76
opengl-games-utils
opengl-game-functions.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File opengl-game-functions.sh of Package opengl-games-utils
# check if DRI is available, true if it is, false otherwise hasDri () { if [ "`glxinfo | grep "direct rendering: " | head -n 1 | cut -d " " -f 3`" != Yes ] || glxinfo | grep -qE "OpenGL renderer string: Software Rasterizer|OpenGL renderer string: Gallium .* on llvmpipe"; then return 1 else return 0 fi } # check if DRI is available, show an error and exit if it isn't checkDriOK () { if ! hasDri; 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 }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor