wined3d: Restore the stateblock after Reset.

This commit is contained in:
Stefan Dösinger 2008-02-05 21:51:53 +01:00 committed by Alexandre Julliard
parent 19c5811256
commit 564532f026
1 changed files with 5 additions and 0 deletions

View File

@ -6931,6 +6931,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
swapchain->num_contexts = 1;
This->activeContext = swapchain->context[0];
hr = IWineD3DStateBlock_InitStartupStateBlock((IWineD3DStateBlock *) This->stateBlock);
if(FAILED(hr)) {
ERR("Resetting the stateblock failed with error 0x%08x\n", hr);
}
/* All done. There is no need to reload resources or shaders, this will happen automatically on the
* first use
*/