Stencil test + internal state changes