scene: Drop ItemRendererOpenGL::RenderNode::coordinateType

All render nodes have unnormalized texture coordinates now, so this
field is not needed anymore.
This commit is contained in:
Vlad Zahorodnii 2024-08-11 19:55:49 +03:00
parent d12112b7a5
commit 49b2b0d001
2 changed files with 1 additions and 6 deletions

View file

@ -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<OpenGLSurfaceContents>(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();

View file

@ -29,7 +29,6 @@ public:
int vertexCount = 0;
qreal opacity = 1;
bool hasAlpha = false;
TextureCoordinateType coordinateType = UnnormalizedCoordinates;
ColorDescription colorDescription;
RenderingIntent renderingIntent;
std::shared_ptr<SyncReleasePoint> bufferReleasePoint;