Warning fixes.

This commit is contained in:
vng 2011-06-01 00:11:27 +03:00 committed by Alex Zolotarev
parent b52ae9f4d1
commit 5206acf162

View file

@ -51,22 +51,20 @@ namespace yg
double const log2 = log(2.0);
unsigned oldTextureWidth = m_textureWidth;
unsigned oldTextureHeight = m_textureHeight;
//unsigned oldTextureWidth = m_textureWidth;
//unsigned oldTextureHeight = m_textureHeight;
m_textureWidth = pow(2, ceil(log(double(w)) / log2));
m_textureHeight = pow(2, ceil(log(double(h)) / log2));
m_textureHeight = pow(2, ceil(log(double(h)) / log2));
/*
bool hasChangedTextureSize;
if ((oldTextureWidth != m_textureWidth) || (oldTextureHeight != m_textureHeight))
hasChangedTextureSize = true;
else
hasChangedTextureSize = false;
//bool hasChangedTextureSize;
//if ((oldTextureWidth != m_textureWidth) || (oldTextureHeight != m_textureHeight))
// hasChangedTextureSize = true;
//else
// hasChangedTextureSize = false;
if (hasChangedTextureSize)
LOG(LINFO, ("TextureSize: ", m_textureWidth, m_textureHeight));
*/
//if (hasChangedTextureSize)
// LOG(LINFO, ("TextureSize: ", m_textureWidth, m_textureHeight));
}
}