2014-01-29 02:26:07 +00:00
|
|
|
#!/bin/sh
|
2015-08-07 02:20:04 +00:00
|
|
|
OPENGL_VERSION=`LANG=C glxinfo | grep '^OpenGL version string: ' | head -n 1 | sed -e 's/^OpenGL version string: \([0-9]\).*$/\1/g'`
|
2014-01-29 02:26:07 +00:00
|
|
|
if [ "$OPENGL_VERSION" -lt 2 ]; then
|
|
|
|
QT_XCB_FORCE_SOFTWARE_OPENGL=1
|
|
|
|
export QT_XCB_FORCE_SOFTWARE_OPENGL
|
|
|
|
fi
|