From aed97e0dd4ed7b3f3275df7f4f9256a4fda7c0d7 Mon Sep 17 00:00:00 2001 From: frohlich Date: Tue, 11 Dec 2007 06:19:08 +0000 Subject: [PATCH] Use a render target fallback that works in any case. Avoids a crash on dri cards on linux. --- src/Instrumentation/od_gauge.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Instrumentation/od_gauge.cxx b/src/Instrumentation/od_gauge.cxx index ce6647259..25184450c 100644 --- a/src/Instrumentation/od_gauge.cxx +++ b/src/Instrumentation/od_gauge.cxx @@ -60,7 +60,7 @@ void FGODGauge::allocRT () { camera->setRenderOrder(osg::Camera::PRE_RENDER); camera->setClearMask(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); camera->setClearColor(osg::Vec4(0.0f, 0.0f, 0.0f , 0.0f)); - camera->setRenderTargetImplementation(osg::Camera::FRAME_BUFFER_OBJECT); + camera->setRenderTargetImplementation(osg::Camera::FRAME_BUFFER_OBJECT, osg::Camera::FRAME_BUFFER); osg::StateSet* stateSet = camera->getOrCreateStateSet(); stateSet->setMode(GL_LIGHTING, osg::StateAttribute::OFF); stateSet->setMode(GL_CULL_FACE, osg::StateAttribute::OFF); -- 2.39.5