Switch TESSIndex from short to int for OpenGL compatability