]> git.mxchange.org Git - flightgear.git/commitdiff
Modified Files:
authorfrohlich <frohlich>
Sun, 3 Dec 2006 16:50:00 +0000 (16:50 +0000)
committerfrohlich <frohlich>
Sun, 3 Dec 2006 16:50:00 +0000 (16:50 +0000)
renderer.cxx: set TexEnv for the 2d stuff.

src/Main/renderer.cxx

index af067d7f9b7b3165750d68881bb1160819225665..8b89324fc2bbffce8968ffed55d8c42a31ac2ba9 100644 (file)
@@ -121,6 +121,8 @@ public:
     stateSet->setMode(GL_BLEND, osg::StateAttribute::ON);
     stateSet->setTextureMode(0, GL_TEXTURE_2D, osg::StateAttribute::OFF);
 
+    stateSet->setTextureAttribute(0, new osg::TexEnv(osg::TexEnv::MODULATE));
+
     stateSet->setMode(GL_FOG, osg::StateAttribute::OFF);
     stateSet->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF);
   }
@@ -174,6 +176,8 @@ public:
     stateSet->setMode(GL_BLEND, osg::StateAttribute::ON);
     stateSet->setMode(GL_FOG, osg::StateAttribute::OFF);
     stateSet->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF);
+
+    stateSet->setTextureAttribute(0, new osg::TexEnv(osg::TexEnv::MODULATE));
   }
   virtual void drawImplementation(osg::State& state) const
   {