Made sure to disable unused vertex array locations. Removed opengl specific code from vertextype.