Changed some client code to suit gl2 renderer