From 327f59a1056318a04b14bbf4c4879c1600f2d1cb Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 11 May 2017 23:02:29 +0100 Subject: [PATCH] Fix new splash screen with Rembrandt enabled Stray depth-test state was causing the splash quad to be discarded. --- src/Viewer/splash.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Viewer/splash.cxx b/src/Viewer/splash.cxx index a8b430dc6..374bcca46 100644 --- a/src/Viewer/splash.cxx +++ b/src/Viewer/splash.cxx @@ -218,13 +218,13 @@ void SplashScreen::createNodes() _splashQuadCamera->setAllowEventFocus(false); _splashQuadCamera->setCullingActive(false); _splashQuadCamera->setRenderOrder(osg::Camera::POST_RENDER, 20000); - + stateSet = _splashQuadCamera->getOrCreateStateSet(); stateSet->setMode(GL_BLEND, osg::StateAttribute::ON); stateSet->setAttribute(new osg::BlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA), osg::StateAttribute::ON); stateSet->setMode(GL_LIGHTING, osg::StateAttribute::OFF); stateSet->setRenderBinDetails(1, "RenderBin"); - + stateSet->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF); geometry = new osg::Geometry; geometry->setSupportsDisplayList(false);