Matteo Bruni : wined3d: Avoid going through the texture units mapping when unnecessary.