Browse Source

MeshTools: code cleanup.

No need to repeat size computation, this way it's also safer (we won't
read memory after the end).
pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
8cafb555dc
  1. 2
      src/MeshTools/Interleave.h

2
src/MeshTools/Interleave.h

@ -66,7 +66,7 @@ class Interleave {
std::tie(std::ignore, std::ignore, data) = operator()(attributes...);
mesh.setVertexCount(_attributeCount);
buffer.setData({data, _attributeCount*_stride}, usage);
buffer.setData(data, usage);
}
/* Specialization for only one attribute array */

Loading…
Cancel
Save