Commit da44bcc9 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d2d1: Do not clear the device context state in d2d_device_context_draw().

Clearing the state should no longer be needed now that we use SwapDeviceContextState() and have our own dedicated state object. Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 78bdc84b
......@@ -139,7 +139,6 @@ static void d2d_device_context_draw(struct d2d_device_context *render_target, en
ID3D11Device1_GetImmediateContext1(device, &context);
ID3D11DeviceContext1_SwapDeviceContextState(context, render_target->d3d_state, &prev_state);
ID3D11DeviceContext1_ClearState(context);
ID3D11DeviceContext1_IASetInputLayout(context, shape_resources->il);
ID3D11DeviceContext1_IASetPrimitiveTopology(context, D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment