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)
committerAnton Gladky <gladk@debian.org>
Thu, 14 Jan 2021 20:36:46 +0000 (20:36 +0000)
commitba6d183a25e8b284eb2e03fda7cf40e38746fc21
tree488cf44f74753cd40d29bf98ceced9dabf8c9c3e
parent72e38ce1b011b3ed004532a4ad688c2e111db1ec
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