[PATCH v3 2/8] d3d11: Implement ID3D11Device::CreateDeferredContext().

Henri Verbeet hverbeet at gmail.com
Thu May 27 06:52:20 CDT 2021


On Thu, 27 May 2021 at 04:17, Zebediah Figura <z.figura12 at gmail.com> wrote:
> @@ -390,6 +390,11 @@ static ULONG STDMETHODCALLTYPE d3d11_device_context_Release(ID3D11DeviceContext1
>
>      if (!refcount)
>      {
> +        if (context->type != D3D11_DEVICE_CONTEXT_IMMEDIATE)
> +        {
> +            wined3d_deferred_context_destroy(context->wined3d_context);
> +            heap_free(context);
> +        }
>          ID3D11Device2_Release(&context->device->ID3D11Device2_iface);
>      }
>
I missed this the first time, but you should also call
d3d11_device_context_destroy() (which perhaps would more properly be
called d3d11_device_context_cleanup()) here.



More information about the wine-devel mailing list