updated for glNext