Skip to content

Commit 7fcdaeb

Browse files
committed
VboMesh::copyAttrib() respecting strideBytes
1 parent 107abad commit 7fcdaeb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cinder/gl/VboMesh.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ uint8_t VboMeshGeomTarget::getAttribDims( geom::Attrib attr ) const
107107
return mVboMesh->getAttribDims( attr );
108108
}
109109

110-
void VboMeshGeomTarget::copyAttrib( geom::Attrib attr, uint8_t dims, size_t /*strideBytes*/, const float *srcData, size_t count )
110+
void VboMeshGeomTarget::copyAttrib( geom::Attrib attr, uint8_t dims, size_t strideBytes, const float *srcData, size_t count )
111111
{
112112
// if we don't have it we don't want it
113113
if( getAttribDims( attr ) == 0 )
@@ -143,7 +143,7 @@ void VboMeshGeomTarget::copyAttrib( geom::Attrib attr, uint8_t dims, size_t /*st
143143
}
144144

145145
if( dstData )
146-
geom::copyData( dims, srcData, count, dstDims, dstStride, reinterpret_cast<float*>( dstData ) );
146+
geom::copyData( dims, strideBytes, srcData, count, dstDims, dstStride, reinterpret_cast<float*>( dstData ) );
147147
}
148148

149149
void VboMeshGeomTarget::copyIndices( geom::Primitive /*primitive*/, const uint32_t *source, size_t numIndices, uint8_t requiredBytesPerIndex )

0 commit comments

Comments
 (0)