diff --git a/es-core/src/components/GIFAnimComponent.cpp b/es-core/src/components/GIFAnimComponent.cpp index 1cba9bac0..a3e99eb09 100644 --- a/es-core/src/components/GIFAnimComponent.cpp +++ b/es-core/src/components/GIFAnimComponent.cpp @@ -583,10 +583,6 @@ void GIFAnimComponent::render(const glm::mat4& parentTrans) vertices[3] = {{mSize.x, mSize.y}, {1.0f, 1.0f}, mColorShiftEnd}; // clang-format on - // Round vertices. - for (int i = 0; i < 4; ++i) - vertices[i].position = glm::round(vertices[i].position); - vertices->brightness = mBrightness; vertices->saturation = mSaturation * mThemeSaturation; vertices->opacity = mOpacity * mThemeOpacity; diff --git a/es-core/src/components/ImageComponent.cpp b/es-core/src/components/ImageComponent.cpp index e864a9789..d181718c5 100644 --- a/es-core/src/components/ImageComponent.cpp +++ b/es-core/src/components/ImageComponent.cpp @@ -874,11 +874,6 @@ void ImageComponent::updateVertices() updateColors(); - // We round the vertices already here in this component as we may otherwise end up with edge - // cases at sizes near 0.5. - for (int i {0}; i < 4; ++i) - mVertices[i].position = glm::round(mVertices[i].position); - if (mFlipX) { for (int i {0}; i < 4; ++i) mVertices[i].texcoord[0] = px - mVertices[i].texcoord[0]; diff --git a/es-core/src/components/LottieAnimComponent.cpp b/es-core/src/components/LottieAnimComponent.cpp index 862a7ebc7..40f3ef95e 100644 --- a/es-core/src/components/LottieAnimComponent.cpp +++ b/es-core/src/components/LottieAnimComponent.cpp @@ -574,10 +574,6 @@ void LottieAnimComponent::render(const glm::mat4& parentTrans) vertices[3] = {{mSize.x, mSize.y}, {1.0f, 1.0f}, mColorShiftEnd}; // clang-format on - // Round vertices. - for (int i {0}; i < 4; ++i) - vertices[i].position = glm::round(vertices[i].position); - vertices->brightness = mBrightness; vertices->saturation = mSaturation * mThemeSaturation; vertices->opacity = mOpacity * mThemeOpacity; diff --git a/es-core/src/components/NinePatchComponent.cpp b/es-core/src/components/NinePatchComponent.cpp index 6a3b2ad6d..40fe14538 100644 --- a/es-core/src/components/NinePatchComponent.cpp +++ b/es-core/src/components/NinePatchComponent.cpp @@ -129,10 +129,6 @@ void NinePatchComponent::buildVertices() (*mVertices)[v + 4] = {{imgPos.x + imgSize.x, imgPos.y + imgSize.y}, {texPos.x + texSizeSlice.x, texPos.y + texSizeSlice.y}, 0}; // clang-format on - // Round vertices. - for (int i {1}; i < 5; ++i) - (*mVertices)[v + i].position = glm::round((*mVertices)[v + i].position); - // Make duplicates of first and last vertex so this can be rendered as a triangle strip. (*mVertices)[v + 0] = (*mVertices)[v + 1]; (*mVertices)[v + 5] = (*mVertices)[v + 4]; diff --git a/es-core/src/components/VideoFFmpegComponent.cpp b/es-core/src/components/VideoFFmpegComponent.cpp index a1b5928df..4469f4883 100644 --- a/es-core/src/components/VideoFFmpegComponent.cpp +++ b/es-core/src/components/VideoFFmpegComponent.cpp @@ -199,10 +199,6 @@ void VideoFFmpegComponent::render(const glm::mat4& parentTrans) vertices[2].color = mColorGradientHorizontal ? mColorShiftEnd : mColorShift; vertices[3].color = mColorShiftEnd; - // Round vertices. - for (int i {0}; i < 4; ++i) - vertices[i].position = glm::round(vertices[i].position); - if (mFadeIn < 1.0f || mThemeOpacity < 1.0f) vertices->opacity = mOpacity * mThemeOpacity; diff --git a/es-core/src/renderers/Renderer.cpp b/es-core/src/renderers/Renderer.cpp index ce60b5c94..251fc4ee8 100644 --- a/es-core/src/renderers/Renderer.cpp +++ b/es-core/src/renderers/Renderer.cpp @@ -486,10 +486,6 @@ void Renderer::drawRect(const float x, vertices[3] = {{x + wL, y + hL}, {0.0f, 0.0f}, colorEnd}; // clang-format on - // Round vertices. - for (int i {0}; i < 4; ++i) - vertices[i].position = glm::round(vertices[i].position); - vertices->opacity = opacity; vertices->dimming = dimming;