Warning fixes
This commit is contained in:
parent
782d72484a
commit
e1f4026cf5
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user