Commit 45250579 authored by Eric Bruneton's avatar Eric Bruneton
Browse files

patch #13237 from Clement Menier

Looking through ork files, we have found that the "divisor" parameter were not set to the AttributeBuffer correctly. This patch should fix this.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/ork/trunk@28 28599a00-4e59-401b-b2d8-d34d4661a6c9
parent 249c7531
......@@ -32,17 +32,17 @@ namespace ork
{
AttributeBuffer::AttributeBuffer(int index, int size, AttributeType t, bool norm, ptr<Buffer> b, int stride, int offset, int divisor) :
Object("AttributeBuffer"), index(index), size(size), type(t), I(false), L(false), norm(norm), b(b), stride(stride), offset(offset), divisor(0)
Object("AttributeBuffer"), index(index), size(size), type(t), I(false), L(false), norm(norm), b(b), stride(stride), offset(offset), divisor(divisor)
{
}
AttributeBuffer::AttributeBuffer(int index, int size, AttributeType t, ptr<Buffer> b, int stride, int offset, int divisor) :
Object("AttributeBuffer"), index(index), size(size), type(t), I(true), L(false), norm(false), b(b), stride(stride), offset(offset), divisor(0)
Object("AttributeBuffer"), index(index), size(size), type(t), I(true), L(false), norm(false), b(b), stride(stride), offset(offset), divisor(divisor)
{
}
AttributeBuffer::AttributeBuffer(int index, int size, ptr<Buffer> b, int stride, int offset, int divisor) :
Object("AttributeBuffer"), index(index), size(size), type(A64F), I(true), L(true), norm(false), b(b), stride(stride), offset(offset), divisor(0)
Object("AttributeBuffer"), index(index), size(size), type(A64F), I(true), L(true), norm(false), b(b), stride(stride), offset(offset), divisor(divisor)
{
}
......
Supports Markdown
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