d3d9: Handle stateblocks in d3d9_device_SetPixelShaderConstantB().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e374d4c72a
commit
22969d43f8
|
@ -3885,6 +3885,8 @@ 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_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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue