[PATCH 06/10] d3d9: use wined3d_rendertarget_view_create instead of wined3d_rendertarget_view_create_from_surface in d3d9_surface_get_rendertarget_view

Henri Verbeet hverbeet at gmail.com
Wed Oct 21 08:11:41 CDT 2015


On 20 October 2015 at 21:13, Riccardo Bortolato <rikyz619 at gmail.com> wrote:
> Well if instead of
>
> +    resource = wined3d_texture_get_resource(surface->wined3d_texture);
>
> I call wined3d_texture_get_sub_resource() then once control goes back
> to wined3d we can know texture_level and texture_layer for that
> particular surface (casting the surface from the subresource e.g. in
> wined3d_rendertarget_view_init()).
>
That would work in principle, but I don't think it's what we want.



More information about the wine-devel mailing list