Marcus Meissner : wined3d: Move texture reference decrement to end of usage (Coverity).