diff --git a/include/osg/GLExtensions b/include/osg/GLExtensions index ad9d567dc..bf25edd90 100644 --- a/include/osg/GLExtensions +++ b/include/osg/GLExtensions @@ -10,6 +10,7 @@ #if defined(WIN32) #include #elif defined(__DARWIN_OSX__) +#include #include #else #include diff --git a/src/osg/Fog.cpp b/src/osg/Fog.cpp index 8a024274a..7073d8c10 100644 --- a/src/osg/Fog.cpp +++ b/src/osg/Fog.cpp @@ -3,6 +3,10 @@ using namespace osg; +#ifndef GL_FOG_COORDINATE_SOURCE + #define GL_FOG_COORDINATE_SOURCE 0x8450 +#endif + Fog::Fog() { _mode = EXP; @@ -29,6 +33,6 @@ void Fog::apply(State&) const static bool fogCoordExtensionSuppoted = osg::isGLExtensionSupported("GL_EXT_fog_coord"); if (fogCoordExtensionSuppoted) { - glFogi(GL_FOG_COORDINATE_SOURCE_EXT,_fogCoordinateSource); + glFogi(GL_FOG_COORDINATE_SOURCE,_fogCoordinateSource); } }