minor fixing

This commit is contained in:
Vladislav Khorev 2013-05-14 21:47:37 +00:00
parent 1e6eeb7e44
commit a2a24f347c

View File

@ -175,7 +175,13 @@ void TDynamicText::UpdateText(std::string text)
vec2 posFrom = LeftBottomPos;
vec2 posTo = LeftBottomPos + vec2(Width, Height);
TextRenderPairItr->second = CreateTriangleListForText(posFrom, posTo, LastTextParams);
PerformInMainThreadAsync(
[this, posFrom, posTo]()
{
this->TextRenderPairItr->second = CreateTriangleListForText(posFrom, posTo, this->LastTextParams);
}
);
}
}