summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2014-10-20 08:59:46 +0200
committerPaul Lemire <paul.lemire@kdab.com>2014-10-22 10:45:27 +0200
commit62f9d57d8e4e9dc77f3eceb9f9c8413998143ca5 (patch)
tree0a893df288bbabb0d0f59b5cb238d9302cbd1e50 /examples
parent5d31b5f774475f87a00447c4eac6eb96e9651675 (diff)
QMeshData: enum for primitives
Each value in the enums maps directly to the correct GLint for a given primitive patch. This allows to still return an int to be used directly by the renderer. This should also fix compilation error of ES2. Change-Id: I7ec54dcb2cbb02b67fa6225bb80fb7e691687e2c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/tessellation-modes/tessellatedquadmesh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tessellation-modes/tessellatedquadmesh.cpp b/examples/tessellation-modes/tessellatedquadmesh.cpp
index b6dfe2cf2..b90c89644 100644
--- a/examples/tessellation-modes/tessellatedquadmesh.cpp
+++ b/examples/tessellation-modes/tessellatedquadmesh.cpp
@@ -74,7 +74,7 @@ public:
vertexBuffer->setUsage(QOpenGLBuffer::StaticDraw);
vertexBuffer->setData(positionBytes);
- Qt3D::QMeshDataPtr mesh(new Qt3D::QMeshData(GL_PATCHES));
+ Qt3D::QMeshDataPtr mesh(new Qt3D::QMeshData(Qt3D::QMeshData::Patches));
mesh->addAttribute(Qt3D::QMeshData::defaultPositionAttributeName(),
Qt3D::AttributePtr(new Qt3D::Attribute(vertexBuffer, GL_FLOAT_VEC3, nVerts)));
mesh->setVerticesPerPatch(4);