made map texture squared.

This commit is contained in:
rachytski 2011-12-17 14:54:31 +04:00 committed by Alex Zolotarev
parent f51fba2679
commit bf9c3de94a

View file

@ -55,6 +55,9 @@ namespace yg
m_textureWidth = static_cast<uint32_t>(pow(2, ceil(log(double(w)) / log2)));
m_textureHeight = static_cast<uint32_t>(pow(2, ceil(log(double(h)) / log2)));
m_textureWidth = max(m_textureWidth, m_textureHeight);
m_textureHeight = max(m_textureWidth, m_textureHeight);
}
}