[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#811195: Check for OpenGL 2.0 and enable QT_XCB_FORCE_SOFTWARE_OPENGL if not found



On Saturday 16 January 2016 14:00:03 Lisandro Damián Nicanor Pérez Meyer wrote:
> Long story:
> http://lists.qt-project.org/pipermail/development/2016-January/024336.html

I've extended the 10-qt5-check-opengl2.sh script a bit:

=========================================================
#!/bin/sh
if [ "$(which glxinfo)" = "" ] ; then
  echo "glxinfo not found"
  echo "On Debian (based) systems, install the mesa-utils package"
  #echo "On RedHat (based) systems, install the glx-utils package"
  exit 1
fi
OPENGL_VERSION=`LANG=C glxinfo | grep '^OpenGL version string: ' | head -n 1 | sed -e 's/^OpenGL version string: \([0-9]\).*$/\1/g'`
if [ -n "$OPENGL_VERSION" ] && [ "$OPENGL_VERSION" -lt 2 ]; then
  QT_XCB_FORCE_SOFTWARE_OPENGL=1
  export QT_XCB_FORCE_SOFTWARE_OPENGL
elif [ -n "$OPENGL_VERSION" ] ; then
  echo "OpenGL version: $OPENGL_VERSION"
else
  echo "OpenGL version not found"
fi
=========================================================

HTH

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: