summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/tessellation-modes
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/tessellation-modes')
-rw-r--r--examples/qt3d/tessellation-modes/tessellatedquadmesh.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/qt3d/tessellation-modes/tessellatedquadmesh.cpp b/examples/qt3d/tessellation-modes/tessellatedquadmesh.cpp
index 630fa1061..c582ee2ec 100644
--- a/examples/qt3d/tessellation-modes/tessellatedquadmesh.cpp
+++ b/examples/qt3d/tessellation-modes/tessellatedquadmesh.cpp
@@ -70,13 +70,13 @@ public:
positionBytes.resize(size);
memcpy(positionBytes.data(), positionData, size);
- Qt3D::BufferPtr vertexBuffer(new Qt3D::Buffer(QOpenGLBuffer::VertexBuffer));
- vertexBuffer->setUsage(QOpenGLBuffer::StaticDraw);
+ Qt3D::QBuffer *vertexBuffer(new Qt3D::QBuffer(Qt3D::QBuffer::VertexBuffer));
+ vertexBuffer->setUsage(Qt3D::QBuffer::StaticDraw);
vertexBuffer->setData(positionBytes);
Qt3D::QMeshDataPtr mesh(new Qt3D::QMeshData(Qt3D::QMeshData::Patches));
mesh->addAttribute(Qt3D::QMeshData::defaultPositionAttributeName(),
- Qt3D::AttributePtr(new Qt3D::Attribute(vertexBuffer, GL_FLOAT_VEC3, nVerts)));
+ new Qt3D::QAttribute(vertexBuffer, GL_FLOAT_VEC3, nVerts));
mesh->setVerticesPerPatch(4);
return mesh;
}