Fix discardingRasterizer to reset to original state