Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.3, 5.15.1
-
57ee54fb4770b618b0bbd06b069682b5cd11fc9f (qt/tqtc-qtdeclarative/5.15)
Description
When we use QSGRenderNode with DepthAwareRendering,
Item's visual ordering does not work as expected.
You can simply reproduce this issue by running attached application.
It's 100% reproducible.
import QtQuick 2.12 import QtQuick.Window 2.12 import MyItem 1.0 Window { id: root width: 1920 height: 720 visible: true MyItem { id: myItem } Text { font.pixelSize: 20 color: "black" text: "Hello Text" } Rectangle { anchors.fill: parent color: "green" } }
Above code is main.qml from the attached application.
Expected result is we never see the text "Hello Text",
but actual result is the text is on the green rectangle.
Attachments
For Gerrit Dashboard: QTBUG-92036 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
341293,1 | Re-enable GL_DEPTH_TEST when using DepthAwareRendering | dev | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |
341300,1 | Re-enable GL_DEPTH_TEST when using DepthAwareRendering | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: ABANDONED | +1 | 0 |
342692,3 | Fix incorrect depth test state with QSGRenderNode::DepthAwareRendering | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |