diff --git a/src/osgPlugins/txp/trpage_pparse.cpp b/src/osgPlugins/txp/trpage_pparse.cpp index 627b3823e..4e67093ac 100644 --- a/src/osgPlugins/txp/trpage_pparse.cpp +++ b/src/osgPlugins/txp/trpage_pparse.cpp @@ -264,10 +264,10 @@ void *trpgPrintGraphParser::ReadHelper::Parse(trpgToken tok,trpgReadBuffer &buf) // Fetch the individual mipmap levels { - int numMipmap; - bool hasMipmap; + + bool hasMipmap = false; baseTex->GetIsMipmap(hasMipmap); - numMipmap = hasMipmap ? baseTex->CalcNumMipmaps() : 0; + int numMipmap = hasMipmap ? baseTex->CalcNumMipmaps() : 0; for (int j=1;j(baseTex))->MipLevelOffset(j); int mipSize = (const_cast(baseTex))->MipLevelSize(j);