Factored out uniform setters to GL utils.