aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/geometry
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@qt.io>2016-04-25 12:09:44 +0200
committerAndy Nichols <andy.nichols@qt.io>2016-05-06 19:17:24 +0000
commit11e788c9a555694f3ec5c4839eb98c4048801bf2 (patch)
tree61cbb54c8fb21eeb96c42825d189799b9a8829cd /tests/auto/quick/geometry
parent53c5398529f852903fb6774210573a25f5ea144a (diff)
Get tests building when QT_NO_OPENGL is defined
Change-Id: I36f9e5e916b59657990d7613850ba76d2489a21e Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'tests/auto/quick/geometry')
-rw-r--r--tests/auto/quick/geometry/tst_geometry.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/quick/geometry/tst_geometry.cpp b/tests/auto/quick/geometry/tst_geometry.cpp
index 7988b6b515..470ce3bd91 100644
--- a/tests/auto/quick/geometry/tst_geometry.cpp
+++ b/tests/auto/quick/geometry/tst_geometry.cpp
@@ -126,9 +126,9 @@ void GeometryTest::testCustomGeometry()
};
static QSGGeometry::Attribute attributes[] = {
- QSGGeometry::Attribute::create(0, 2, GL_FLOAT, false),
- QSGGeometry::Attribute::create(1, 4, GL_UNSIGNED_BYTE, false),
- QSGGeometry::Attribute::create(2, 4, GL_FLOAT, false)
+ QSGGeometry::Attribute::create(0, 2, QSGGeometry::TypeFloat, false),
+ QSGGeometry::Attribute::create(1, 4, QSGGeometry::TypeUnsignedByte, false),
+ QSGGeometry::Attribute::create(2, 4, QSGGeometry::TypeFloat, false)
};
static QSGGeometry::AttributeSet set = { 4, 6 * sizeof(float) + 4 * sizeof(unsigned char), attributes };