shamefully forgot to set the primitive type to the vertexarray..