fixes blending: properly restore blending state