diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2024-01-03 15:49:03 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2024-01-15 21:25:12 +0100 |
commit | 098ef8089a85719eb6affb5a5cc7e81112102593 (patch) | |
tree | 93fbcda4487306f74923021b531f99555237f5d0 /src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h | |
parent | 7295ece36399f25e3a3226b3222261e803140c94 (diff) |
Keep source compat for internal setProjectionMatrix users
Add default values to the new index argument so Quick 3D
compiles as-is.
Task-number: QTBUG-114871
Change-Id: Ifeca9af696d7d8e59fea390adae3b1e42e61f991
Reviewed-by: Andy Nichols <andy.nichols@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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h b/src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h index c3b47282a1..5d7a3b13b6 100644 --- a/src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h +++ b/src/quick/scenegraph/coreapi/qsgabstractrenderer_p.h @@ -54,8 +54,8 @@ public: void setProjectionMatrixToRect(const QRectF &rect, MatrixTransformFlags flags); void setProjectionMatrixToRect(const QRectF &rect, MatrixTransformFlags flags, bool nativeNDCFlipY); - void setProjectionMatrix(const QMatrix4x4 &matrix, int index); - void setProjectionMatrixWithNativeNDC(const QMatrix4x4 &matrix, int index); + void setProjectionMatrix(const QMatrix4x4 &matrix, int index = 0); + void setProjectionMatrixWithNativeNDC(const QMatrix4x4 &matrix, int index = 0); QMatrix4x4 projectionMatrix(int index) const; QMatrix4x4 projectionMatrixWithNativeNDC(int index) const; int projectionMatrixCount() const; |