Make sure we create a new SampleState object or we get crashes.