On 6/10/22 06:18, Henri Verbeet wrote:
On Fri, 10 Jun 2022 at 13:11, Jan Sikorski (@jsikorski) wine@gitlab.winehq.org wrote:
On Fri Jun 10 11:05:14 2022 +0000, Jan Sikorski wrote:
As far as I'm concerned, that's fine.
I agree with Henri's point though, perhaps it would be better to reorder initialization so that we create dxgi_resource first?
The issue with that is that dxgi_resource_init() takes the wined3d resource as parameter. Perhaps that could be avoided, but it would likely introduce its own set of issues.
One thing we could probably do in general is make it possible to delay setting the parent ops, e.g. set it as wined3d_null_parent_ops initially and then add a separate function like wined3d_resource_set_parent_ops() once the client object is fully initialized.