- cleanup a few compiler warnings
This commit is contained in:
parent
b81a0ffdb8
commit
29a123e263
|
@ -193,7 +193,7 @@ string Mesh::findAlternateTexture(vector<string> conversionList, string textureF
|
||||||
string result = textureFile;
|
string result = textureFile;
|
||||||
string fileExt = extractExtension(textureFile);
|
string fileExt = extractExtension(textureFile);
|
||||||
|
|
||||||
for(int i = 0; i < conversionList.size(); ++i) {
|
for(unsigned int i = 0; i < conversionList.size(); ++i) {
|
||||||
string convertTo = conversionList[i];
|
string convertTo = conversionList[i];
|
||||||
if(fileExt != convertTo) {
|
if(fileExt != convertTo) {
|
||||||
string alternateTexture = textureFile;
|
string alternateTexture = textureFile;
|
||||||
|
@ -242,7 +242,7 @@ void Mesh::loadV2(int meshIndex, const string &dir, FILE *f, TextureManager *tex
|
||||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("Load v2, this = %p Found meshHeader.hasTexture = %d, texName [%s] mtDiffuse = %d meshIndex = %d\n",this,meshHeader.hasTexture,toLower(reinterpret_cast<char*>(meshHeader.texName)).c_str(),mtDiffuse,meshIndex);
|
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("Load v2, this = %p Found meshHeader.hasTexture = %d, texName [%s] mtDiffuse = %d meshIndex = %d\n",this,meshHeader.hasTexture,toLower(reinterpret_cast<char*>(meshHeader.texName)).c_str(),mtDiffuse,meshIndex);
|
||||||
|
|
||||||
textureFlags= 0;
|
textureFlags= 0;
|
||||||
if(meshHeader.hasTexture == true) {
|
if(meshHeader.hasTexture) {
|
||||||
textureFlags= 1;
|
textureFlags= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user