diff --git a/src/scene/itemrenderer_opengl.cpp b/src/scene/itemrenderer_opengl.cpp index 01105abe8c..cc02851e49 100644 --- a/src/scene/itemrenderer_opengl.cpp +++ b/src/scene/itemrenderer_opengl.cpp @@ -163,7 +163,6 @@ void ItemRendererOpenGL::createRenderNode(Item *item, RenderContext *context) .transformMatrix = context->transformStack.top(), .opacity = context->opacityStack.top(), .hasAlpha = true, - .coordinateType = UnnormalizedCoordinates, .colorDescription = item->colorDescription(), .renderingIntent = item->renderingIntent(), .bufferReleasePoint = nullptr, @@ -178,7 +177,6 @@ void ItemRendererOpenGL::createRenderNode(Item *item, RenderContext *context) .transformMatrix = context->transformStack.top(), .opacity = context->opacityStack.top(), .hasAlpha = true, - .coordinateType = UnnormalizedCoordinates, .colorDescription = item->colorDescription(), .renderingIntent = item->renderingIntent(), .bufferReleasePoint = nullptr, @@ -195,7 +193,6 @@ void ItemRendererOpenGL::createRenderNode(Item *item, RenderContext *context) .transformMatrix = context->transformStack.top(), .opacity = context->opacityStack.top(), .hasAlpha = pixmap->hasAlphaChannel(), - .coordinateType = UnnormalizedCoordinates, .colorDescription = item->colorDescription(), .renderingIntent = item->renderingIntent(), .bufferReleasePoint = surfaceItem->bufferReleasePoint(), @@ -210,7 +207,6 @@ void ItemRendererOpenGL::createRenderNode(Item *item, RenderContext *context) .transformMatrix = context->transformStack.top(), .opacity = context->opacityStack.top(), .hasAlpha = imageItem->image().hasAlphaChannel(), - .coordinateType = UnnormalizedCoordinates, .colorDescription = item->colorDescription(), .renderingIntent = item->renderingIntent(), .bufferReleasePoint = nullptr, @@ -312,7 +308,7 @@ void ItemRendererOpenGL::renderItem(const RenderTarget &renderTarget, const Rend } else { texture = std::get(renderNode.texture).planes.constFirst().get(); } - renderNode.geometry.postProcessTextureCoordinates(texture->matrix(renderNode.coordinateType)); + renderNode.geometry.postProcessTextureCoordinates(texture->matrix(UnnormalizedCoordinates)); renderNode.geometry.copy(map->subspan(v)); v += renderNode.geometry.count(); diff --git a/src/scene/itemrenderer_opengl.h b/src/scene/itemrenderer_opengl.h index af87221810..944281c4e7 100644 --- a/src/scene/itemrenderer_opengl.h +++ b/src/scene/itemrenderer_opengl.h @@ -29,7 +29,6 @@ public: int vertexCount = 0; qreal opacity = 1; bool hasAlpha = false; - TextureCoordinateType coordinateType = UnnormalizedCoordinates; ColorDescription colorDescription; RenderingIntent renderingIntent; std::shared_ptr bufferReleasePoint;