wined3d: Set the texture stage limit based on the fragment pipe caps.