d3d11: Create an initial device ID3DDeviceContextState.
commit943d48896e97240499351b7f78480811d6abb320
authorRémi Bernon <rbernon@codeweavers.com>
Tue, 16 Feb 2021 12:56:01 +0000 (16 13:56 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 17 Feb 2021 20:42:18 +0000 (17 21:42 +0100)
treefbd6824879063bba8839ea7c1e5d57d13b2d78b1
parentbde070fcf42eb7ed346dd15de943bdb9326d2aff
d3d11: Create an initial device ID3DDeviceContextState.

And use its emulated_interface. This adds a private_refcount to track
hidden references, and a reference to the wined3d_device, to keep the
d3d_device alive while not publicly referencing it.

This uses d3d_device_context_state_AddRef on init so that the initial
references are also traced, making it easier to verify that nothing is
leaked.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/d3d11/d3d11_main.c
dlls/d3d11/d3d11_private.h
dlls/d3d11/device.c