Fixed compile warnings.
This commit is contained in:
@@ -801,9 +801,8 @@ std::string osgDB::findFileInDirectory(const std::string& fileName,const std::st
|
||||
}
|
||||
}
|
||||
#else
|
||||
void osgDB::appendPlatformSpecificResourceFilePaths(FilePathList& filepath)
|
||||
void osgDB::appendPlatformSpecificResourceFilePaths(FilePathList& /*filepath*/)
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -117,8 +117,8 @@ void ConnectedParticleSystem::drawImplementation(osg::State& state) const
|
||||
osg::Vec4 pixelSizeVector = osg::CullingSet::computePixelSizeVector(*state.getCurrentViewport(),state.getProjectionMatrix(),state.getModelViewMatrix());
|
||||
float unitPixelSize = fabs(1.0/(particle->getPosition()*pixelSizeVector));
|
||||
float pixelSizeOfFirstParticle = unitPixelSize * particle->getCurrentSize();
|
||||
float desiredGapBetweenDrawnParticles = 50.0f/unitPixelSize;
|
||||
float desiredGapBetweenDrawnParticles2 = desiredGapBetweenDrawnParticles*desiredGapBetweenDrawnParticles;
|
||||
//float desiredGapBetweenDrawnParticles = 50.0f/unitPixelSize;
|
||||
//float desiredGapBetweenDrawnParticles2 = desiredGapBetweenDrawnParticles*desiredGapBetweenDrawnParticles;
|
||||
unsigned int maxNumParticlesToSkip = 200;
|
||||
float maxPixelError2 = osg::square(1.0f/unitPixelSize);
|
||||
|
||||
|
||||
@@ -208,7 +208,7 @@ void skip_input_data (j_decompress_ptr cinfo, long num_bytes)
|
||||
* application must deal with any cleanup that should happen even
|
||||
* for error exit.
|
||||
*/
|
||||
void term_source (j_decompress_ptr cinfo)
|
||||
void term_source (j_decompress_ptr /*cinfo*/)
|
||||
{
|
||||
/* no work necessary here */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user