diff options
author | Sergey Dubitskiy <sergey.dubitskiy@nokia.com> | 2012-01-25 11:07:05 +1000 |
---|---|---|
committer | Danny Pope <daniel.pope@nokia.com> | 2012-02-01 03:25:17 +0100 |
commit | 42f09ac510d4f6d6f5641c9e1dc6fc5d87fe9c9f (patch) | |
tree | 07c8109fe40585160080df6d4f028fbbea5507b4 /tests/auto | |
parent | 637c6004b46cd5ae68b5ec9b62df0e9480289e80 (diff) |
QTBUG-20443. Fixed Quad and Cube sizes and texcoords.
Task-number: QTBUG-20443
Change-Id: Ief0b15f8ca07104936c2bf64f764e50b10a7e89c
Reviewed-by: Danny Pope <daniel.pope@nokia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qml3d/picking/tst_picking.qml | 4 | ||||
-rw-r--r-- | tests/auto/threed/qglcube/tst_qglcube.cpp | 48 |
2 files changed, 26 insertions, 26 deletions
diff --git a/tests/auto/qml3d/picking/tst_picking.qml b/tests/auto/qml3d/picking/tst_picking.qml index 867b72f2a..94ee6553a 100644 --- a/tests/auto/qml3d/picking/tst_picking.qml +++ b/tests/auto/qml3d/picking/tst_picking.qml @@ -66,8 +66,8 @@ Rectangle angle: 90 }, Scale3D { - // a scale 2 quad will fill a square viewport - scale: 2 + // a scale 4 quad will fill a square viewport + scale: 4 } ] position: Qt.vector3d(0, 0, 0) diff --git a/tests/auto/threed/qglcube/tst_qglcube.cpp b/tests/auto/threed/qglcube/tst_qglcube.cpp index b63669f73..d43fb44c9 100644 --- a/tests/auto/threed/qglcube/tst_qglcube.cpp +++ b/tests/auto/threed/qglcube/tst_qglcube.cpp @@ -59,26 +59,26 @@ private slots: #define QGL_CUBE_SIZE (6 * 6 * (3 + 3 + 2)) static float const cubeVertices[QGL_CUBE_SIZE] = { - -0.5f, -0.5f, -0.5f, -1.0f, 0.0f, 0.0f, 1.0f, 0.0f, - -0.5f, -0.5f, 0.5f, -1.0f, 0.0f, 0.0f, 1.0f, 1.0f, - -0.5f, 0.5f, 0.5f, -1.0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, 0.0f, -1.0f, 1.0f, 0.0f, - -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.0f, 1.0f, - -0.5f, 0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f + 0.5f, 0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.0f, 1.0f, + 0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f, + -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 1.0f, 0.0f, + 0.5f, 0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.0f, 1.0f, + -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 1.0f, 0.0f, + -0.5f, 0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 1.0f, 1.0f }; static int findVertex(const QGeometryData &ary, const QVector3D &v, const QVector3D &n) |