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

2d2b1a
#!/bin/bash
2d2b1a
68351b
if [ -z "${QT_XCB_FORCE_SOFTWARE_OPENGL-}" ]; then
2d2b1a
2d2b1a
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'` ||:
2d2b1a
2d2b1a
if [ "$QT5_CHECK_OPENGL_VERSION" == "1" ]; then
2d2b1a
  QT_XCB_FORCE_SOFTWARE_OPENGL=1
2d2b1a
  export QT_XCB_FORCE_SOFTWARE_OPENGL
2d2b1a
fi
2d2b1a
2d2b1a
unset QT5_CHECK_OPENGL_VERSION
2d2b1a
2d2b1a
fi