I'd like to use the length of the vertex array as the third parameter in the dlDrawArrays function, since it determines how many vertexes that needs to be drawn. However, it causes some really weird behaviour in the program. Whenever I use "78" which is the vertex count for the model, everything works nicely.
Why does vector.size() cause this problem and what would be the better solution? I don't like having the actual vertex count number in there.
[attachment=5319:Untitled-1.jpg]