Don't updateSizeAndPosition on setPos as it might change texture and that isn't threadsafe

This commit is contained in:
2021-05-25 20:21:26 +02:00
parent 670d5b7c1b
commit bd8a841e6f
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -85,6 +85,7 @@ void TextRenderer::updateTexture() {
}
void TextRenderer::updateSizeAndPosition() {
RectangleRender::updateSizeAndPosition();
// TODO only if size actually changed
updateTexture();
updateDstRect();
}