Hi J-S,
you are right using NOMINMAX avoids the problem. I tracked it down to osg/GL
and the inclusion of gl3.h:
Code:
#elif defined(OSG_GL3_AVAILABLE)
#define GL3_PROTOTYPES 1
#include < GL3/gl3.h >
#ifndef GL_APIENTRY
#define GL_APIENTRY APIENTRY
#endif // GL_APIENTRY
#else
With definintion NOMINMAX in front of the include it works, defining NOMINMAX
after the gl3.h include, it failed.
In the gl3.g it checks for win and defines WIN32_LEAN_AND_MEAN.
In my case this is not enough, only with defining NOMINMAX, it compiles (at
least the osg module, some plugins still fail but I will test that tomorrow.)
To avoid modifications in gl3.h i modified my osg/GL:
Code:
...
#elif defined(OSG_GL3_AVAILABLE)
#ifdef WIN32
#ifdef NOMINMAX
#define NOMINMAX
#endif
#endif
#define GL3_PROTOTYPES 1
#include < GL3/gl3.h >
#ifndef GL_APIENTRY
#define GL_APIENTRY APIENTRY
#endif // GL_APIENTRY
#else
...
Is this a valid fix ready to submit, or is it to much hack to be ready for
merging?
In the next days I hope to solve the confict between tesselator and unit to
solve this GL3 issue for the next dev release.
Thanks for your help,
Torben
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=34795#34795
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org