Blame SOURCES/10-qt5-check-opengl2.sh

b5e7a8
#!/bin/bash
b5e7a8
b5e7a8
if [ -z "$QT_XCB_FORCE_SOFTWARE_OPENGL" ]; then
b5e7a8
b5e7a8
QT5_CHECK_OPENGL_VERSION=`LANG=C glxinfo 2> /dev/null | grep '^OpenGL version string: ' | head -n 1 | sed -e 's/^OpenGL version string: \([0-9]\).*$/\1/g'` ||:
b5e7a8
b5e7a8
if [ "$QT5_CHECK_OPENGL_VERSION" == "1" ]; then
b5e7a8
  QT_XCB_FORCE_SOFTWARE_OPENGL=1
b5e7a8
  export QT_XCB_FORCE_SOFTWARE_OPENGL
b5e7a8
fi
b5e7a8
b5e7a8
unset QT5_CHECK_OPENGL_VERSION
b5e7a8
b5e7a8
fi