diff options
author | JiDe Zhang <zhangjide@uniontech.com> | 2023-08-28 15:27:40 +0800 |
---|---|---|
committer | JiDe Zhang <zhangjide@uniontech.com> | 2023-09-06 14:55:46 +0800 |
commit | e898c06759b5c5a6138fac6f9a2cb31388ea3da9 (patch) | |
tree | bdafe2b0b4cf8a81baa7fc11264907b654bf8a0a /src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h | |
parent | 2866cecd95989d6292254bd8055a5b8b65f4c3dc (diff) |
Fix QML item is missing if its parent's clip property is true
If using QQuickRenderTarget to the QQuickWindow, and set true in
QQuickRenderTarget::setMirrorVertically, the QQuickWindow will
apply flip Y to the matrix with native NDC, this behovior is
wrong, If QRhi::isYUpInNDC is true, must ensure the
QSGAbstractRenderer::projectionMatrixWithNativeNDC is following
QSGAbstractRenderer::projectionMatrix, otherwise must ensure its
flip Y relative to QSGAbstractRenderer::projectionMatrix.
Pick-to: 6.5 6.6
Fixes: QTBUG-116587
Change-Id: I12b5f6e37ed5bad8656cf46bf1a25e534db24b62
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h b/src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h index ec2cb66662..81263111cb 100644 --- a/src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h +++ b/src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h @@ -61,6 +61,8 @@ public: void setProjectionMatrixToRect(const QRectF &rect); void setProjectionMatrixToRect(const QRectF &rect, MatrixTransformFlags flags); + void setProjectionMatrixToRect(const QRectF &rect, MatrixTransformFlags flags, + bool nativeNDCFlipY); void setProjectionMatrix(const QMatrix4x4 &matrix); void setProjectionMatrixWithNativeNDC(const QMatrix4x4 &matrix); QMatrix4x4 projectionMatrix() const; |