Added the definition of GL_FOG_COORDINATE_SOURCE to Fog.cpp.
Added #include<string> to the GLExtensions header.
This commit is contained in:
parent
df9a899d9e
commit
36ad072e14
@ -10,6 +10,7 @@
|
||||
#if defined(WIN32)
|
||||
#include <windows.h>
|
||||
#elif defined(__DARWIN_OSX__)
|
||||
#include <string>
|
||||
#include <mach-o/dyld.h>
|
||||
#else
|
||||
#include <dlfcn.h>
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user