Fix compilation when Qt is built for GLES platforms
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Tue, 9 Jun 2020 15:11:12 +0000 (17:11 +0200)
committerJochen Sprickerhof <jspricke@debian.org>
Tue, 12 Oct 2021 08:21:32 +0000 (09:21 +0100)
commit02b92ec2f1d39eadade082fb58c276cc9bed3dfc
tree8527eb5f7949aac657829171ecdefd84e0774250
parentbb77abb237dc3289351d4a527e1e6382639c30c0
Fix compilation when Qt is built for GLES platforms

On GLES 2.0/3.0 platforms (more specifically, for Qt5 "opengl es2" builds),
QOpenGLFunctions_3_2_Core does not exist.

After the last restructuring, from the GL 3.2 Core functions only
glDrawBuffer is used. glDrawBuffer can be trivially replaced with
glDrawBuffers, which is part of OpenGL 2.0 and GLES 3.0, and as an
extension in many GLES 2.0 implementations.

Gbp-Pq: Name 82_allow_gles_platforms.patch
GUISupport/Qt/QVTKRenderWindowAdapter.cxx