Warning fixes

This commit is contained in:
Robert Osfield 2006-07-19 15:10:50 +00:00
parent 782d72484a
commit e1f4026cf5

View File

@ -264,10 +264,10 @@ void *trpgPrintGraphParser::ReadHelper::Parse(trpgToken tok,trpgReadBuffer &buf)
// Fetch the individual mipmap levels // Fetch the individual mipmap levels
{ {
int numMipmap;
bool hasMipmap; bool hasMipmap = false;
baseTex->GetIsMipmap(hasMipmap); baseTex->GetIsMipmap(hasMipmap);
numMipmap = hasMipmap ? baseTex->CalcNumMipmaps() : 0; int numMipmap = hasMipmap ? baseTex->CalcNumMipmaps() : 0;
for (int j=1;j<numMipmap;j++) { for (int j=1;j<numMipmap;j++) {
//int mipOffset = (const_cast<trpgTexture *>(baseTex))->MipLevelOffset(j); //int mipOffset = (const_cast<trpgTexture *>(baseTex))->MipLevelOffset(j);
int mipSize = (const_cast<trpgTexture *>(baseTex))->MipLevelSize(j); int mipSize = (const_cast<trpgTexture *>(baseTex))->MipLevelSize(j);