From e1f4026cf5fd7e064cea66b81a4524b3fc6a1e10 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 19 Jul 2006 15:10:50 +0000 Subject: [PATCH] Warning fixes --- src/osgPlugins/txp/trpage_pparse.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);