This commit have a serrious perf issue when drawing nurbs (+5 times slower) but it gets rid of deprecated functions.