diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-11-01 14:31:04 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-11-01 13:58:02 +0100 |
commit | 31e11bc4e83d4d0c407c27cc0abd26b017441c49 (patch) | |
tree | a7d8419e2f8b0ea6d2f369a93f2f6a10324711b3 /desktop-widgets | |
parent | cb34b33a64318a5f1671027a42494484b02e3800 (diff) | |
download | subsurface-31e11bc4e83d4d0c407c27cc0abd26b017441c49.tar.gz |
desktop-main.cpp: further improve the GL version detection
First, attempt to use glGetString(GL_VERSION), which works
on legacy profiles but has to be parsed (unsafe and vendor specific?).
If the above fails attempt to use the newer version API from
glGetIntegerv().
If both fail, fall back to a software renderer or exit.
If GLES is detected from glGetString() (for some odd reason -
e.g. emulated driver) show a warning and return early as we don't
handle it's versioning.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'desktop-widgets')
0 files changed, 0 insertions, 0 deletions