From 62f5a4d3bc9c874e057e694cbe9144a2170cf6cf Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 18 May 2009 15:49:19 +0000 Subject: [PATCH] Merged changed from svn/trunk, improving the reliability of the clear of the stencil and depth buffer. --- src/osgUtil/RenderStage.cpp | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/osgUtil/RenderStage.cpp b/src/osgUtil/RenderStage.cpp index 836454d21..95b0b6418 100644 --- a/src/osgUtil/RenderStage.cpp +++ b/src/osgUtil/RenderStage.cpp @@ -1202,17 +1202,12 @@ void RenderStage::drawImplementation(osg::RenderInfo& renderInfo,RenderLeaf*& pr // set up the back buffer. state.applyAttribute(_viewport.get()); -#define USE_SISSOR_TEST -#ifdef USE_SISSOR_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()<