[PATCH 4/5] d2d1: Use D3DDeviceContextState instead of D3D10 state block.

Henri Verbeet hverbeet at gmail.com
Mon Jun 28 10:12:34 CDT 2021


On Mon, 28 Jun 2021 at 09:18, Rémi Bernon <rbernon at codeweavers.com> wrote:
> +    ID3D11Device1_GetImmediateContext1(device, &context);
> +    ID3D11DeviceContext1_SwapDeviceContextState(context, render_target->d3d_state, &prev_state);
> +    ID3D11DeviceContext1_ClearState(context);
>
> -    ID3D10Device_ClearState(device);
> -
This is fine because it retains the existing behaviour, but note that
now that we have our own D3DDeviceContextState, clearing the device
context state should be superfluous, and we could get rid of it in a
subsequent patch.



More information about the wine-devel mailing list