[Orxonox-commit 1960] r6677 - code/trunk/src/modules/overlays/hud
scheusso at orxonox.net
scheusso at orxonox.net
Tue Apr 6 15:04:27 CEST 2010
Author: scheusso
Date: 2010-04-06 15:04:26 +0200 (Tue, 06 Apr 2010)
New Revision: 6677
Modified:
code/trunk/src/modules/overlays/hud/HUDBar.cc
Log:
this removes problems with the HUDSpeedBar on some machines (by disabling mipmaps)
Modified: code/trunk/src/modules/overlays/hud/HUDBar.cc
===================================================================
--- code/trunk/src/modules/overlays/hud/HUDBar.cc 2010-04-06 09:00:44 UTC (rev 6676)
+++ code/trunk/src/modules/overlays/hud/HUDBar.cc 2010-04-06 13:04:26 UTC (rev 6677)
@@ -76,6 +76,7 @@
material->getTechnique(0)->getPass(0)->setSceneBlending(Ogre::SBT_TRANSPARENT_ALPHA);
this->textureUnitState_ = material->getTechnique(0)->getPass(0)->createTextureUnitState();
this->textureUnitState_->setTextureName("bar2.tga");
+ this->textureUnitState_->setNumMipmaps(0);
// use the default colour
this->textureUnitState_->setColourOperationEx(Ogre::LBX_MODULATE, Ogre::LBS_MANUAL, Ogre::LBS_CURRENT, ColourValue(0.2f, 0.7f, 0.2f));
More information about the Orxonox-commit
mailing list