Henri Verbeet : wined3d: Make the "texture" parameter to wined3d_texture_get_sub_resource() const.