OpenGL support: removes deprecated functions