b22f3a788e
* 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
7 lines
242 B
Bash
Executable File
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
|