[vtk-developers] vtkgl::LoadExtension not exported
Kathleen S. Biagas
biagas2 at llnl.gov
Wed Apr 17 17:01:56 EDT 2013
In our attempts to support OSMesa at runtime, we've run into a snag in
that vtkgl::LoadExtension and vtkgl::GLVersionExtensionsString are not
exported, and thus not accessible in our implementation.
Are there any objections or unforseen-on-my-part consequences to
modifying ParseOGLExt.cxx to export those symbols?
Something along the lines of:
Left file: /VTK-Unmodified/Utilities/ParseOGLExt/ParseOGLExt.cxx
Right file: /VTK-Modified/Utilities/ParseOGLExt/ParseOGLExt.cxx
693c693
< hfile << endl << " int LoadExtension(const char *name, "
---
> hfile << endl << " extern int VTKRENDERINGOPENGL_EXPORT
LoadExtension(const char *name, "
696c696
< hfile << endl << " const char *GLVersionExtensionsString();" <<
endl;
---
> hfile << endl << " extern VTKRENDERINGOPENGL_EXPORT const char
*GLVersionExtensionsString();" << endl;
Kathleen
More information about the vtk-developers
mailing list