Skip to content

Commit

Permalink
fix #5559
Browse files Browse the repository at this point in the history
  • Loading branch information
rtri committed May 14, 2017
1 parent 88d0f3e commit dd2c400
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rts/Rendering/FarTextureHandler.cpp
Expand Up @@ -132,7 +132,9 @@ void CFarTextureHandler::CreateFarTexture(const CSolidObject* obj)
if (model->id >= iconCache[obj->team].size())
iconCache[obj->team].resize(std::max(iconCache[obj->team].size() * 2, size_t(model->id + 1)), {0});

assert(iconCache[obj->team][model->id].farTexNum == 0);
// same object can be queued multiple times in different passes
if (iconCache[obj->team][model->id].farTexNum != 0)
return;

// enough free space in the atlas?
if (!CheckResizeAtlas())
Expand Down

0 comments on commit dd2c400

Please sign in to comment.