Skip to content

Commit

Permalink
[WINESYNC] d3d9: Handle stateblocks in d3d9_device_SetPixelShaderCons…
Browse files Browse the repository at this point in the history
…tantB().

Signed-off-by: Zebediah Figura <[email protected]>
Signed-off-by: Henri Verbeet <[email protected]>
Signed-off-by: Alexandre Julliard <[email protected]>

wine commit id 22969d43f85c84f47bac3c644e0cd2db876b9e1d by Zebediah Figura <[email protected]>
  • Loading branch information
winesync authored and DarkFire01 committed Sep 12, 2023
1 parent 7f26b5a commit b0c1885
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dll/directx/wine/d3d9/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -3884,7 +3884,9 @@ static HRESULT WINAPI d3d9_device_SetPixelShaderConstantB(IDirect3DDevice9Ex *if
TRACE("iface %p, reg_idx %u, data %p, count %u.\n", iface, reg_idx, data, count);

wined3d_mutex_lock();
hr = wined3d_device_set_ps_consts_b(device->wined3d_device, reg_idx, count, data);
hr = wined3d_stateblock_set_ps_consts_b(device->update_state, reg_idx, count, data);
if (SUCCEEDED(hr) && !device->recording)
hr = wined3d_device_set_ps_consts_b(device->wined3d_device, reg_idx, count, data);
wined3d_mutex_unlock();

return hr;
Expand Down

0 comments on commit b0c1885

Please sign in to comment.