GLVideoDriver: some shader fixes (thanks wjp), Triangulation class