Henri Verbeet : wined3d: Use a simpler way to calculate the number of texture levels.