From Blake Williams, warning fixes

This commit is contained in:
Robert Osfield 2007-09-13 10:21:47 +00:00
parent eac9831723
commit 2aff52be23
2 changed files with 3 additions and 3 deletions

View File

@ -149,7 +149,7 @@ void DePee::setEdgy(bool edgy)
_dePeePasses.back()->remRenderPass(EDGE_MAP);
}
for(int i=0; i < n; i++)
for(unsigned int i=0; i < n; i++)
{
addDePeePass();
}
@ -167,7 +167,7 @@ void DePee::setFPS(double* fps)
unsigned int DePee::getNumberOfRenderPasses()
{
unsigned int n = 0;
for(int i=0; i < _dePeePasses.size();i++)
for(unsigned int i=0; i < _dePeePasses.size();i++)
n += _dePeePasses.at(i)->Cameras.size();
// add one pass for final rendering pass and one for hud
return n+2;

View File

@ -313,7 +313,7 @@ int main( int argc, char **argv )
while(!viewer.done())
{
osg::Timer_t current_tick = osg::Timer::instance()->tick();
current_tick = osg::Timer::instance()->tick();
*fps = 1.0/osg::Timer::instance()->delta_s(previous_tick,current_tick);
dePee->updateHUDText();