Missed rename in VertexAttribArrayDispatch
The variable array is by initialisation a null-pointer, new_array is the new array
This commit is contained in:
committed by
Robert Osfield
parent
66873b8c6c
commit
1f562c003c
@@ -442,7 +442,7 @@ struct VertexAttribArrayDispatch : public VertexArrayState::ArrayDispatch
|
||||
{
|
||||
if (new_array->getDataType()==GL_FLOAT)
|
||||
ext->glVertexAttribPointer(static_cast<GLuint>(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<GLuint>(unit), new_array->getDataSize(), new_array->getDataType(), 0, ptr);
|
||||
else
|
||||
ext->glVertexAttribIPointer(static_cast<GLuint>(unit), new_array->getDataSize(), new_array->getDataType(), 0, ptr);
|
||||
|
||||
Reference in New Issue
Block a user