Don't updateSizeAndPosition on setPos as it might change texture and that isn't threadsafe
This commit is contained in:
@@ -85,6 +85,7 @@ void TextRenderer::updateTexture() {
|
||||
}
|
||||
void TextRenderer::updateSizeAndPosition() {
|
||||
RectangleRender::updateSizeAndPosition();
|
||||
// TODO only if size actually changed
|
||||
updateTexture();
|
||||
updateDstRect();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user