]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexarray.cpp
Allow generic vertex attribute 0, since OpenGL 3.0 does not support any fixed-functio...
[libs/gl.git] / source / vertexarray.cpp
index de343bf7065a07aa573377a6e49be8114dd60356..ef11844466b9ff7833dcde88a53a69ff422f059d 100644 (file)
@@ -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<<t;