Skip to content
Snippets Groups Projects
Commit dd6f9820 authored by Laszlo Agocs's avatar Laszlo Agocs
Browse files

Adjust RenderModeUnderlay Lancelot test


Similarly to what we did with the examples: with the RHI-based rendering
path the View3D's clearColor has no effect when the renderMode is not
Offscreen. So just set that color to match the QQuickWindow's color.
That way the end result is the same regardless of who does the clear.

Task-number: QTBUG-83801
Change-Id: I3f63da7e711b849ad015d7bd824c7a40dedf884f
Reviewed-by: default avatarAndy Nichols <andy.nichols@qt.io>
parent b9f82c50
No related branches found
No related tags found
No related merge requests found
...@@ -62,10 +62,15 @@ Rectangle { ...@@ -62,10 +62,15 @@ Rectangle {
View3D { View3D {
anchors.fill: parent anchors.fill: parent
// This is only here to match the QQuickWindow default clear color
// (white), and so to provide identical results with Qt 5 and 6. It has
// no effect in Qt 6 due to the renderMode!
environment: SceneEnvironment { environment: SceneEnvironment {
backgroundMode: SceneEnvironment.Color backgroundMode: SceneEnvironment.Color
clearColor: "blue" clearColor: "white"
} }
renderMode: View3D.Underlay renderMode: View3D.Underlay
Node { Node {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment