Updated Cube sample for good 'glNext' practices