aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-09-08 15:15:57 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2011-09-08 15:45:49 +0200
commitc2b488fa7a9cc10bfa6342bd415aaf58fe857c9a (patch)
tree8e4d130542b1ada7ecba5b09b8c3fcf389d0a30c /tests
parentafc0e48afc804b375cf994d6b2eea95ef80d4007 (diff)
rename QSGGeometry::stride() to sizeOfVertex for symetry with index
Also support GL_UNSIGNED_INT as index type when supported by GL Change-Id: I0988e102c8a04ce6cd02fb02528204ba810f853a Reviewed-on: http://codereview.qt-project.org/4453 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/geometry/tst_geometry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/geometry/tst_geometry.cpp b/tests/auto/declarative/geometry/tst_geometry.cpp
index b62104da4c..2915902fa4 100644
--- a/tests/auto/declarative/geometry/tst_geometry.cpp
+++ b/tests/auto/declarative/geometry/tst_geometry.cpp
@@ -63,7 +63,7 @@ void GeometryTest::testPoint2D()
QSGGeometry geometry(QSGGeometry::defaultAttributes_Point2D(), 4, 0);
QCOMPARE(geometry.attributeCount(), 1);
- QCOMPARE(geometry.stride(), (int) sizeof(float) * 2);
+ QCOMPARE(geometry.sizeOfVertex(), (int) sizeof(float) * 2);
QCOMPARE(geometry.vertexCount(), 4);
QCOMPARE(geometry.indexCount(), 0);
QVERIFY(geometry.indexData() == 0);
@@ -96,7 +96,7 @@ void GeometryTest::testTexturedPoint2D()
QSGGeometry geometry(QSGGeometry::defaultAttributes_TexturedPoint2D(), 4, 0);
QCOMPARE(geometry.attributeCount(), 2);
- QCOMPARE(geometry.stride(), (int) sizeof(float) * 4);
+ QCOMPARE(geometry.sizeOfVertex(), (int) sizeof(float) * 4);
QCOMPARE(geometry.vertexCount(), 4);
QCOMPARE(geometry.indexCount(), 0);
QVERIFY(geometry.indexData() == 0);