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)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 5 Jan 2021 14:46:48 +0000 (14:46 +0000)
commitc3d6dadb9ccf6fd3d6809c107319acce5e866298
tree421bb968b476a060d7891bf1a07f1e136a8d514e
parentad5cf48813b2ef00167226b41666563c79cfbe89
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