wined3d: Track texture allocation per-texture.