From 4dd7a87aaa20dc9ef0786ef8873eb147fde71173 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 18 May 2009 15:46:02 +0000 Subject: [PATCH] Added enable of clear stencil and depth mask to ensure that stencil and depth buffers are always cleared when required --- src/osgUtil/RenderStage.cpp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/osgUtil/RenderStage.cpp b/src/osgUtil/RenderStage.cpp index 06cf2725b..665a94ffa 100644 --- a/src/osgUtil/RenderStage.cpp +++ b/src/osgUtil/RenderStage.cpp @@ -1209,17 +1209,12 @@ void RenderStage::drawImplementation(osg::RenderInfo& renderInfo,RenderLeaf*& pr // set up the back buffer. state.applyAttribute(_viewport.get()); -#define USE_SCISSOR_TEST -#ifdef USE_SCISSOR_TEST glScissor( static_cast(_viewport->x()), static_cast(_viewport->y()), static_cast(_viewport->width()), static_cast(_viewport->height()) ); //cout << " clearing "<x()<<","<< _viewport->y()<<","<< _viewport->width()<<","<< _viewport->height()<