Added explictly unbinding of VBO for setInterleavedArrays().
This commit is contained in:
@@ -745,8 +745,10 @@ void VertexArrayState::setArray(ArrayDispatch* vad, osg::State& state, GLint siz
|
||||
void VertexArrayState::setInterleavedArrays( osg::State& state, GLenum format, GLsizei stride, const GLvoid* pointer)
|
||||
{
|
||||
#if defined(OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE) && !defined(OSG_GLES1_AVAILABLE)
|
||||
lazyDisablingOfVertexAttributes();
|
||||
applyDisablingOfVertexAttributes(state);
|
||||
unbindVertexBufferObject();
|
||||
|
||||
//lazyDisablingOfVertexAttributes();
|
||||
//applyDisablingOfVertexAttributes(state);
|
||||
|
||||
glInterleavedArrays( format, stride, pointer);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user