Replace last glDrawBuffer call with glDrawBuffers(1, ...)
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Sun, 28 Jun 2020 20:13:32 +0000 (22:13 +0200)
committerJochen Sprickerhof <jspricke@debian.org>
Tue, 12 Oct 2021 08:21:32 +0000 (09:21 +0100)
commitbb77abb237dc3289351d4a527e1e6382639c30c0
treeee026310c5cd3f8fb0c8672f8b8f7654d867bbde
parentc3f2bb7f89c1ac8a3b2cc6c7f4e544aeb75406e8
Replace last glDrawBuffer call with glDrawBuffers(1, ...)

glDrawBuffer is only available in Desktop OpenGL, while the equivalent
glDrawBuffers is valid also for GLES.

Just defining glDrawBuffer as an empty macro is obviously not the right
solution, as the call is also required on GLES. This also causes
a compilation failure - GL.h may be included via GLX.h on X11 platforms,
and the glDrawBuffer prototype declaration becomes malformed.

Gbp-Pq: Name 81_allow_gles_platforms.patch
Rendering/ContextOpenGL2/vtkOpenGLContextDevice2DPrivate.h
ThirdParty/glew/vtk_glew.h.in