summaryrefslogtreecommitdiffstats
path: root/cmake/Modules
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-10-29 18:04:32 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-29 11:06:40 -0700
commitc78a864e15c7e070a7233d09c805f66490de7e27 (patch)
tree5b95f2e7bfd39d08ec4aeb89ebf4ccd1de314254 /cmake/Modules
parentfd2e4803a07e60f447c5734a39fac561b1fc4407 (diff)
downloadsubsurface-c78a864e15c7e070a7233d09c805f66490de7e27.tar.gz
desktop-main.cpp: add validateGL()
Add a new static function to validate the availability of OpenGL on this particular desktop system. It makes some calls to create a platform agnostic GL context that renders to a offscreen surface. Then it makes a couple of glGetIntegerv((GL_xxx_VERSION, ...) calls to see if the GL profile version is at least 2.1. In case any of the steps fail, a stderr message is shown and all QtQuick based widgets would be rendered using a software renderer. Testing was done in the case of the Google maps plugin and the fallback seems to work on Windows, but further testing will be required on all OS. For the time being, the automatic fallback is only supported on Qt 5.8.0 or later. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'cmake/Modules')
0 files changed, 0 insertions, 0 deletions