From Pjotr Svetachov, "The binding of arrays is always set to BIND_UNDEFINED when using the array constructor because the binding parameter is ignored. Here is a fix."
This commit is contained in:
parent
d3c2896651
commit
08f741bcd9
@ -121,11 +121,11 @@ class OSG_EXPORT Array : public BufferData
|
|||||||
BIND_PER_VERTEX=4
|
BIND_PER_VERTEX=4
|
||||||
};
|
};
|
||||||
|
|
||||||
Array(Type arrayType=ArrayType,GLint dataSize=0,GLenum dataType=0, Binding=BIND_UNDEFINED):
|
Array(Type arrayType=ArrayType,GLint dataSize=0,GLenum dataType=0, Binding binding=BIND_UNDEFINED):
|
||||||
_arrayType(arrayType),
|
_arrayType(arrayType),
|
||||||
_dataSize(dataSize),
|
_dataSize(dataSize),
|
||||||
_dataType(dataType),
|
_dataType(dataType),
|
||||||
_binding(BIND_UNDEFINED),
|
_binding(binding),
|
||||||
_normalize(false),
|
_normalize(false),
|
||||||
_preserveDataType(false) {}
|
_preserveDataType(false) {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user