Skip to content

Commit f2f5d01

Browse files
author
kevyuu
committed
Add -1 to maxVertex
1 parent 1dc258e commit f2f5d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/asset/IPolygonGeometry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class IPolygonGeometry : public IIndexableGeometry<BufferType>, public IPolygonG
232232
}
233233
retval.vertexData[0] = base_t::m_positionView.src;
234234
retval.indexData = base_t::m_indexView.src;
235-
retval.maxVertex = base_t::m_positionView.getElementCount();
235+
retval.maxVertex = base_t::m_positionView.getElementCount() - 1;
236236
retval.vertexStride = base_t::m_positionView.composed.getStride();
237237
retval.vertexFormat = base_t::m_positionView.composed.format;
238238
retval.indexType = indexType;

0 commit comments

Comments
 (0)