Reintroduced a transformation rounding in GuiComponent as some GPU drivers went crazy without it.

This commit is contained in:
Leon Styhre 2022-10-25 21:11:16 +02:00
parent 7c1a48ec5c
commit 3252f8fa1b

View file

@ -206,7 +206,7 @@ void GuiComponent::setDimming(float dimming)
const glm::mat4& GuiComponent::getTransform()
{
mTransform = Renderer::getIdentity();
mTransform = glm::translate(mTransform, mPosition);
mTransform = glm::translate(mTransform, glm::round(mPosition));
if (mScale != 1.0f)
mTransform = glm::scale(mTransform, glm::vec3 {mScale});