wined3d: Keep track of the current texture type for each texture unit.