diff --git a/src/Include/config.h-msvc71 b/src/Include/config.h-msvc71 index 0e7fc3835..0e2c75d62 100755 --- a/src/Include/config.h-msvc71 +++ b/src/Include/config.h-msvc71 @@ -163,6 +163,8 @@ #define NOMINMAX 1 +#define HAVE_CULLSETTINGS_CLEAR_MASK 1 + #ifndef ENABLE_AUDIO_SUPPORT #define ENABLE_AUDIO_SUPPORT #endif diff --git a/src/Main/CameraGroup.cxx b/src/Main/CameraGroup.cxx index 57371b1d8..954a591e5 100644 --- a/src/Main/CameraGroup.cxx +++ b/src/Main/CameraGroup.cxx @@ -202,7 +202,7 @@ void CameraGroup::update(const osg::Vec3d& position, camera->setProjectionMatrix(projectionMatrix); camera->setCullMask(camera->getCullMask() | simgear::BACKGROUND_BIT); - camera->setClearMask(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + camera->setClearMask(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); farCamera->setNodeMask(0); } else { Matrix nearProj, farProj;