Set resampling options on the correct context