Józef Kucia : wined3d: Simplify computation of " num_textures_used" in ATI fragment pipeline.