[PATCH v4 1/6] d3dx10/sprite: Check for the Begin/End state in affected methods.