From 564532f026b9ed8f046478ad56b48b775bb5bdd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Tue, 5 Feb 2008 21:51:53 +0100 Subject: [PATCH] wined3d: Restore the stateblock after Reset. --- dlls/wined3d/device.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 9d16156d5b5..7b924da06e0 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -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 */