Small code cleanup and OpenGL Index Buffer Array bug fix.