forked from organicmaps/organicmaps
made map texture squared.
This commit is contained in:
parent
f51fba2679
commit
bf9c3de94a
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue