From: Mikko Rasa Date: Fri, 16 Jan 2009 09:05:12 +0000 (+0000) Subject: Fix an index mismatch between setting attribute array pointers and enabling the arrays X-Git-Tag: 1.1~11 X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=d653d25b548070c688e40c052730d63345ce70c9 Fix an index mismatch between setting attribute array pointers and enabling the arrays --- diff --git a/source/vertexarray.cpp b/source/vertexarray.cpp index ef118444..6740818e 100644 --- a/source/vertexarray.cpp +++ b/source/vertexarray.cpp @@ -120,7 +120,7 @@ void VertexArray::apply() const set_array(GL_TEXTURE_COORD_ARRAY, found&4, 4); set_array(GL_COLOR_ARRAY, found&8, 8); for(unsigned i=4; i<32; ++i) - set_array(i-3, (found>>i)&1, 1<>i)&1, 1<