qt5-qtbase/10-qt5-check-opengl2.sh
Kevin Kofler b22f3a788e use software OpenGL (llvmpipe) if the hardware driver doesn't support OpenGL 2
* Wed Jan 29 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 5.2.0-9
- use software OpenGL (llvmpipe) if the hardware driver doesn't support OpenGL 2
2014-01-29 03:27:24 +01:00

7 lines
242 B
Bash
Executable File

#!/bin/sh
OPENGL_VERSION=`LANG=C glxinfo | grep '^OpenGL version string: ' | sed -e 's/^OpenGL version string: \([0-9]\).*$/\1/g'`
if [ "$OPENGL_VERSION" -lt 2 ]; then
QT_XCB_FORCE_SOFTWARE_OPENGL=1
export QT_XCB_FORCE_SOFTWARE_OPENGL
fi