d3d11: Pass normalized D3D11_DEPTH_STENCIL_DESC to wine_rb_put().

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-09-06 22:01:56 +02:00 committed by Alexandre Julliard
parent 66996c602d
commit ffe182009e
1 changed files with 1 additions and 1 deletions

View File

@ -762,7 +762,7 @@ HRESULT d3d_depthstencil_state_create(struct d3d_device *device, const D3D11_DEP
return hr;
}
if (wine_rb_put(&device->depthstencil_states, desc, &object->entry) == -1)
if (wine_rb_put(&device->depthstencil_states, &tmp_desc, &object->entry) == -1)
{
ERR("Failed to insert depthstencil state entry.\n");
d3d_depthstencil_state_cleanup(object);