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>
Sun, 28 Nov 2021 22:34:47 +0000 (22:34 +0000)
commite42a11769ed2ce842af9ad509bcd5bfb00e2a5cc
tree97486578157e371f81770df5392233e7d5a60efc
parent3ac4d959d242c76198489ec01a3725891cb2dc72
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