From 1f562c003c947378ad18109ba27cc980d9de2045 Mon Sep 17 00:00:00 2001 From: Fabian Wiesel Date: Fri, 23 Sep 2016 21:00:40 +0200 Subject: [PATCH] Missed rename in VertexAttribArrayDispatch The variable array is by initialisation a null-pointer, new_array is the new array --- src/osg/VertexArrayState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/VertexArrayState.cpp b/src/osg/VertexArrayState.cpp index a420872c8..23b847f4f 100644 --- a/src/osg/VertexArrayState.cpp +++ b/src/osg/VertexArrayState.cpp @@ -442,7 +442,7 @@ struct VertexAttribArrayDispatch : public VertexArrayState::ArrayDispatch { if (new_array->getDataType()==GL_FLOAT) ext->glVertexAttribPointer(static_cast(unit), new_array->getDataSize(), new_array->getDataType(), new_array->getNormalize(), 0, ptr); - else if (array->getDataType()==GL_DOUBLE) + else if (new_array->getDataType()==GL_DOUBLE) ext->glVertexAttribLPointer(static_cast(unit), new_array->getDataSize(), new_array->getDataType(), 0, ptr); else ext->glVertexAttribIPointer(static_cast(unit), new_array->getDataSize(), new_array->getDataType(), 0, ptr);