Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2009, 10:20:37 PM (15 years ago)
Author:
rgrieder
Message:

Fixed at least 8 unitialised value problems though not all of them are problematic. Still, the values are being used and some condition depends on it.

Location:
code/branches/presentation2/src/libraries/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/tools/ParticleInterface.cc

    r6213 r6218  
    6464        this->bAllowedByLOD_ = true;
    6565        this->speedFactor_ = 1.0f;
     66
     67        this->setDetailLevel(static_cast<unsigned int>(detaillevel));
    6668
    6769        this->setConfigValues();
     
    8082            }
    8183        }
    82 
    83         this->setDetailLevel(static_cast<unsigned int>(detaillevel));
    8484    }
    8585
  • code/branches/presentation2/src/libraries/tools/Shader.cc

    r5781 r6218  
    7979    Shader::~Shader()
    8080    {
    81 
    82         if (this->bLoadCompositor_ && this->compositorInstance_)
     81        if (this->compositorInstance_ && this->bLoadCompositor_)
    8382        {
    8483            Ogre::Viewport* viewport = GraphicsManager::getInstance().getViewport();
Note: See TracChangeset for help on using the changeset viewer.