mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 07:35:38 +00:00
Reintroduced a transformation rounding in GuiComponent as some GPU drivers went crazy without it.
This commit is contained in:
parent
7c1a48ec5c
commit
3252f8fa1b
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue