summaryrefslogtreecommitdiffstats
path: root/src/imports/shaders/scenegraph/qsggeometry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/shaders/scenegraph/qsggeometry.h')
-rw-r--r--src/imports/shaders/scenegraph/qsggeometry.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/shaders/scenegraph/qsggeometry.h b/src/imports/shaders/scenegraph/qsggeometry.h
index f61489c9..53c61674 100644
--- a/src/imports/shaders/scenegraph/qsggeometry.h
+++ b/src/imports/shaders/scenegraph/qsggeometry.h
@@ -136,13 +136,13 @@ inline quint16 *QSGGeometry::indexDataAsUShort()
inline const uint *QSGGeometry::indexDataAsUInt() const
{
Q_ASSERT(m_index_type == GL_UNSIGNED_INT);
- return (uint *) indexData();
+ return (const uint *) indexData();
}
inline const quint16 *QSGGeometry::indexDataAsUShort() const
{
Q_ASSERT(m_index_type == GL_UNSIGNED_SHORT);
- return (quint16 *) indexData();
+ return (const quint16 *) indexData();
}
inline QSGGeometry::Point2D *QSGGeometry::vertexDataAsPoint2D()