Skip to content

Commit 91ca08b

Browse files
committed
OpenGL2: Fix undeclared "glXGetProcAddressARB" when building on Centos5
This commit fixes the build error reported below when building VTK on Centos 5.11 where mesa 6.5.1 is used. Not that the compiler used is a newer version of g++ with c++11 support. See [1] VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx:581:76: error: ‘glXGetProcAddressARB’ was not declared in this scope glXGetProcAddressARB( (const GLubyte *) "glXCreateContextAttribsARB" ); [1] https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/2/html/2.0_Release_Notes/DTS2.0_Release.html
1 parent 6327999 commit 91ca08b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
// provided by the system.
2222
//#define GLX_GLXEXT_LEGACY
2323

24+
// Ensure older version of glx.h define glXGetProcAddressARB
25+
#define GLX_GLXEXT_PROTOTYPES
26+
2427
// New Workaround:
2528
// The GLX_GLXEXT_LEGACY definition was added to work around system glxext.h
2629
// files that used the GLintptr and GLsizeiptr types, but did not define them.

0 commit comments

Comments
 (0)