Remove useless gl calls