d3d9: Handle stateblocks in d3d9_device_SetFVF().
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
3b7967cdd6
commit
157aac1b23
|
@ -3359,7 +3359,9 @@ static HRESULT WINAPI d3d9_device_SetFVF(IDirect3DDevice9Ex *iface, DWORD fvf)
|
||||||
return D3DERR_DRIVERINTERNALERROR;
|
return D3DERR_DRIVERINTERNALERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
wined3d_device_set_vertex_declaration(device->wined3d_device, decl);
|
wined3d_stateblock_set_vertex_declaration(device->update_state, decl);
|
||||||
|
if (!device->recording)
|
||||||
|
wined3d_device_set_vertex_declaration(device->wined3d_device, decl);
|
||||||
device->has_vertex_declaration = TRUE;
|
device->has_vertex_declaration = TRUE;
|
||||||
wined3d_mutex_unlock();
|
wined3d_mutex_unlock();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue