From Blake Williams, warning fixes
This commit is contained in:
parent
eac9831723
commit
2aff52be23
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user