[PATCH v2] d3dx9: Correctly handle sprites array reallocation.