1
Description: Default to BIND_PER_VERTEX to fix texture corruption
3
Bug-Debian: http://bugs.debian.org/736350
4
Origin: upstream https://github.com/openscenegraph/osg/commit/b801ae9d499a78889a322b95fbdf9864828349bc
6
--- openscenegraph-3.2.0~rc1.orig/OpenSceneGraph/src/osg/Geometry.cpp
7
+++ openscenegraph-3.2.0~rc1/OpenSceneGraph/src/osg/Geometry.cpp
8
@@ -161,12 +161,14 @@ void Geometry::setTexCoordArray(unsigned
9
if (_texCoordList.size()<=index)
10
_texCoordList.resize(index+1);
12
- if (array && binding!=osg::Array::BIND_UNDEFINED) array->setBinding(binding);
15
+ if (binding!=osg::Array::BIND_UNDEFINED) array->setBinding(binding);
16
+ else array->setBinding(osg::Array::BIND_PER_VERTEX);
19
_texCoordList[index] = array;
21
- // do we set to array BIND_PER_VERTEX?
25
if (_useVertexBufferObjects && array)