[PATCH v3 3/6] d3dx10/sprite: Partially implement state restore functionality.