From Sekender, fixed warnins
This commit is contained in:
@@ -357,7 +357,6 @@ osg::Image* ReadVTFFile(std::istream& _istream)
|
||||
int s, t, r;
|
||||
unsigned int lrSize;
|
||||
unsigned char * imageData;
|
||||
unsigned char * imageDataPtr;
|
||||
unsigned int base;
|
||||
unsigned int size;
|
||||
int mip;
|
||||
|
||||
@@ -440,7 +440,6 @@ std::string VBSPReader::findFileIgnoreCase(std::string filePath)
|
||||
|
||||
ref_ptr<Texture> VBSPReader::readTextureFile(std::string textureName)
|
||||
{
|
||||
int i;
|
||||
std::string texFile;
|
||||
std::string texPath;
|
||||
Image * texImage;
|
||||
@@ -811,7 +810,7 @@ void VBSPReader::createScene()
|
||||
char * mtlPtr = 0;
|
||||
char * tmpPtr = 0;
|
||||
char tempTex[256];
|
||||
int i, j;
|
||||
int i;
|
||||
ref_ptr<StateSet> stateSet;
|
||||
|
||||
// Create the root group for the scene
|
||||
|
||||
@@ -403,7 +403,7 @@ bool ReaderWriterCURL::read(std::istream& fin, std::string& destination) const
|
||||
15 + 32 // autodected zlib or gzip header
|
||||
);
|
||||
if (ret != Z_OK)
|
||||
return ret;
|
||||
return false;
|
||||
|
||||
/* decompress until deflate stream ends or end of file */
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user