Commit 5656d8de authored by Christopher Tenter's avatar Christopher Tenter
Browse files

automatic stride computation independent of 1. offset

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15849 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 95267c35
......@@ -115,7 +115,7 @@ void VertexDeclaration::addElements(unsigned int _numElements, const VertexEleme
{
const VertexElement* pLastElement = getElement(n-1);
vertexStride_ = pLastElement->byteOffset_ + getElementSize( pLastElement );
vertexStride_ = pLastElement->byteOffset_ + getElementSize( pLastElement ) - getElement(0)->byteOffset_;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment