From 08f741bcd951050e015b851f33ad596eff201de2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 2 Jul 2013 09:44:46 +0000 Subject: [PATCH] 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." --- include/osg/Array | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osg/Array b/include/osg/Array index eb6288291..3c8206383 100644 --- a/include/osg/Array +++ b/include/osg/Array @@ -121,11 +121,11 @@ class OSG_EXPORT Array : public BufferData 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), _dataSize(dataSize), _dataType(dataType), - _binding(BIND_UNDEFINED), + _binding(binding), _normalize(false), _preserveDataType(false) {}