From d3e9fea28be8f5aed4e182362e5514571c29cbfe Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 6 Mar 2003 10:38:56 +0000 Subject: [PATCH] Fixed the setInterleavedArray call. --- src/osg/State.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/osg/State.cpp b/src/osg/State.cpp index b7af8a497..a92603adf 100644 --- a/src/osg/State.cpp +++ b/src/osg/State.cpp @@ -506,12 +506,13 @@ void State::dirtyAllVertexArrays() void State::setInterleavedArrays( GLenum format, GLsizei stride, const GLvoid* pointer) { + disableAllVertexArrays(); + glInterleavedArrays( format, stride, pointer); - + // the crude way, assume that all arrays have been effected so dirty them and // disable them... dirtyAllVertexArrays(); - disableAllVertexArrays(); }