mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:00:05 +00:00
Fix rendering of placefile icons, now works on one map
This commit is contained in:
parent
f074e487de
commit
bc1bf8cef6
5 changed files with 32 additions and 21 deletions
|
|
@ -77,9 +77,11 @@ GLuint GlContext::GetTextureAtlas()
|
|||
{
|
||||
std::unique_lock lock(p->textureMutex_);
|
||||
|
||||
if (p->textureAtlas_ == GL_INVALID_INDEX)
|
||||
auto& textureAtlas = util::TextureAtlas::Instance();
|
||||
|
||||
if (p->textureAtlas_ == GL_INVALID_INDEX || textureAtlas.NeedsBuffered())
|
||||
{
|
||||
p->textureAtlas_ = util::TextureAtlas::Instance().BufferAtlas(p->gl_);
|
||||
p->textureAtlas_ = textureAtlas.BufferAtlas(p->gl_);
|
||||
}
|
||||
|
||||
return p->textureAtlas_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue