From ebfffd4e58fc193461a72928f83d27f920ec8ce7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 6 Aug 2006 16:42:43 +0000 Subject: [PATCH] Removed debugging code. --- examples/osgshadowtexture/CreateShadowedScene.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/examples/osgshadowtexture/CreateShadowedScene.cpp b/examples/osgshadowtexture/CreateShadowedScene.cpp index 30da6043a..0da32a972 100644 --- a/examples/osgshadowtexture/CreateShadowedScene.cpp +++ b/examples/osgshadowtexture/CreateShadowedScene.cpp @@ -125,14 +125,7 @@ osg::Group* createShadowedScene(osg::Node* shadower,osg::Node* shadowed,const os camera->setClearColor(osg::Vec4(1.0f,1.0f,1.0f,1.0f)); // set viewport -// Both of these methods should produce the same result, but they don't. -#if 1 - camera->setViewport(0,tex_height/2,tex_width,tex_height/2); -#else camera->setViewport(0,0,tex_width,tex_height); - osg::Viewport* vp = new osg::Viewport(0,tex_height/2,tex_width,tex_height/2); - camera->getOrCreateStateSet()->setAttribute(vp); -#endif // set the camera to render before the main camera. camera->setRenderOrder(osg::CameraNode::PRE_RENDER);