diff --git a/examples/osgdepthpeeling/DePee.cpp b/examples/osgdepthpeeling/DePee.cpp index 075720d3f..1f2ceef44 100644 --- a/examples/osgdepthpeeling/DePee.cpp +++ b/examples/osgdepthpeeling/DePee.cpp @@ -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; diff --git a/examples/osgdepthpeeling/osgdepthpeeling.cpp b/examples/osgdepthpeeling/osgdepthpeeling.cpp index bce7f69b5..d81ffe727 100644 --- a/examples/osgdepthpeeling/osgdepthpeeling.cpp +++ b/examples/osgdepthpeeling/osgdepthpeeling.cpp @@ -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();