Henri Verbeet : wined3d: Use the texture dimension helpers in texture2d_prepare_texture().