42 lines
1.7 KiB
Diff
42 lines
1.7 KiB
Diff
From e951b7202419ae2d1518972a51683d59ee147c81 Mon Sep 17 00:00:00 2001
|
|
From: Tomi Korpipaa <tomi.korpipaa@qt.io>
|
|
Date: Fri, 24 Mar 2023 08:34:56 +0200
|
|
Subject: [PATCH] Fix progressive anti-aliasing for PrincipledMaterial
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Fixes: QTBUG-112263
|
|
Change-Id: Ib1b716bf19ac789a35962b7496e33534bc497ec7
|
|
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
|
|
---
|
|
src/runtimerender/rendererimpl/qssgrendererimpl.cpp | 7 +++++--
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/runtimerender/rendererimpl/qssgrendererimpl.cpp b/src/runtimerender/rendererimpl/qssgrendererimpl.cpp
|
|
index 155f0f6d6..49af69cb0 100644
|
|
--- a/src/runtimerender/rendererimpl/qssgrendererimpl.cpp
|
|
+++ b/src/runtimerender/rendererimpl/qssgrendererimpl.cpp
|
|
@@ -345,13 +345,16 @@ void QSSGRendererImpl::beginFrame()
|
|
m_lastFrameLayers[idx]->resetForFrame();
|
|
m_lastFrameLayers.clear();
|
|
for (auto *matObj : qAsConst(m_materialClearDirty)) {
|
|
- if (matObj->type == QSSGRenderGraphObject::Type::CustomMaterial)
|
|
+ if (matObj->type == QSSGRenderGraphObject::Type::CustomMaterial) {
|
|
static_cast<QSSGRenderCustomMaterial *>(matObj)->updateDirtyForFrame();
|
|
- else if (matObj->type == QSSGRenderGraphObject::Type::DefaultMaterial)
|
|
+ } else if (matObj->type == QSSGRenderGraphObject::Type::DefaultMaterial ||
|
|
+ matObj->type == QSSGRenderGraphObject::Type::PrincipledMaterial) {
|
|
static_cast<QSSGRenderDefaultMaterial *>(matObj)->dirty.updateDirtyForFrame();
|
|
+ }
|
|
}
|
|
m_materialClearDirty.clear();
|
|
}
|
|
+
|
|
void QSSGRendererImpl::endFrame()
|
|
{
|
|
}
|
|
--
|
|
GitLab
|
|
|