Stefan Dösinger : wined3d: Restore the stateblock after Reset.

Alexandre Julliard julliard at winehq.org
Wed Feb 6 07:27:48 CST 2008


Module: wine
Branch: master
Commit: 564532f026b9ed8f046478ad56b48b775bb5bdd4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=564532f026b9ed8f046478ad56b48b775bb5bdd4

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Tue Feb  5 21:51:53 2008 +0100

wined3d: Restore the stateblock after Reset.

---

 dlls/wined3d/device.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 9d16156..7b924da 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
      */




More information about the wine-cvs mailing list