Fixed a rendering issue in ScrollableContainer.

This commit is contained in:
Leon Styhre 2022-09-05 00:30:19 +02:00
parent e8c74450a0
commit 881b602cb4

View file

@ -236,7 +236,7 @@ void ScrollableContainer::render(const glm::mat4& parentTrans)
mRenderer->pushClipRect(clipPos, clipDim); mRenderer->pushClipRect(clipPos, clipDim);
trans = glm::translate(trans, -glm::vec3 {mScrollPos.x, mScrollPos.y, 0.0f}); trans = glm::translate(trans, glm::round(-glm::vec3 {mScrollPos.x, mScrollPos.y, 0.0f}));
mRenderer->setMatrix(trans); mRenderer->setMatrix(trans);
if (Settings::getInstance()->getBool("DebugText")) if (Settings::getInstance()->getBool("DebugText"))