X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvertexarray.cpp;h=ef11844466b9ff7833dcde88a53a69ff422f059d;hb=bc3c82a86eeadde54be9fe32a8a8a76872ca99c3;hp=de343bf7065a07aa573377a6e49be8114dd60356;hpb=b8fef9be469eb16e54068bac7e275ea225efc71c;p=libs%2Fgl.git diff --git a/source/vertexarray.cpp b/source/vertexarray.cpp index de343bf7..ef118444 100644 --- a/source/vertexarray.cpp +++ b/source/vertexarray.cpp @@ -1,7 +1,7 @@ /* $Id$ This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -108,7 +108,7 @@ void VertexArray::apply() const glColorPointer(sz, GL_FLOAT, bpv, base+offset); break; default: - glVertexAttribPointerARB(t-3, sz, GL_FLOAT, false, bpv, base+offset); + glVertexAttribPointerARB(t-4, sz, GL_FLOAT, false, bpv, base+offset); break; } found|=1<