From c958a75e2b79d6d5cda7365078e32ffff40e9b6e Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sun, 23 Jun 2024 20:40:37 +0300 Subject: [PATCH] scene: Drop ItemRendererOpenGL::RenderNode::scale It's unused. --- src/scene/itemrenderer_opengl.cpp | 4 ---- src/scene/itemrenderer_opengl.h | 1 - 2 files changed, 5 deletions(-) diff --git a/src/scene/itemrenderer_opengl.cpp b/src/scene/itemrenderer_opengl.cpp index 8e9f351810..2e13686df2 100644 --- a/src/scene/itemrenderer_opengl.cpp +++ b/src/scene/itemrenderer_opengl.cpp @@ -164,7 +164,6 @@ void ItemRendererOpenGL::createRenderNode(Item *item, RenderContext *context) .opacity = context->opacityStack.top(), .hasAlpha = true, .coordinateType = UnnormalizedCoordinates, - .scale = scale, .colorDescription = item->colorDescription(), .bufferReleasePoint = nullptr, }); @@ -179,7 +178,6 @@ void ItemRendererOpenGL::createRenderNode(Item *item, RenderContext *context) .opacity = context->opacityStack.top(), .hasAlpha = true, .coordinateType = UnnormalizedCoordinates, - .scale = scale, .colorDescription = item->colorDescription(), .bufferReleasePoint = nullptr, }); @@ -196,7 +194,6 @@ void ItemRendererOpenGL::createRenderNode(Item *item, RenderContext *context) .opacity = context->opacityStack.top(), .hasAlpha = pixmap->hasAlphaChannel(), .coordinateType = NormalizedCoordinates, - .scale = scale, .colorDescription = item->colorDescription(), .bufferReleasePoint = surfaceItem->bufferReleasePoint(), }); @@ -211,7 +208,6 @@ void ItemRendererOpenGL::createRenderNode(Item *item, RenderContext *context) .opacity = context->opacityStack.top(), .hasAlpha = imageItem->image().hasAlphaChannel(), .coordinateType = NormalizedCoordinates, - .scale = scale, .colorDescription = item->colorDescription(), .bufferReleasePoint = nullptr, }); diff --git a/src/scene/itemrenderer_opengl.h b/src/scene/itemrenderer_opengl.h index 0d5ea02d98..fe2e22569d 100644 --- a/src/scene/itemrenderer_opengl.h +++ b/src/scene/itemrenderer_opengl.h @@ -30,7 +30,6 @@ public: qreal opacity = 1; bool hasAlpha = false; TextureCoordinateType coordinateType = UnnormalizedCoordinates; - qreal scale = 1.0; ColorDescription colorDescription; std::shared_ptr bufferReleasePoint; };