Changing gl stuff to handle NURB curves