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

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