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

Riccardo Bortolato rikyz619 at gmail.com
Wed Oct 21 10:04:36 CDT 2015


What is your preferred solution then?

Ciao,
Riccardo

2015-10-21 15:11 GMT+02:00 Henri Verbeet <hverbeet at gmail.com>:
> 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