Henri Verbeet : wined3d: Capture on a recorded stateblock doesn' t record the vertexdeclaration in d3d9.

Alexandre Julliard julliard at winehq.org
Tue Oct 13 10:52:53 CDT 2009


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Oct 13 10:38:01 2009 +0200

wined3d: Capture on a recorded stateblock doesn't record the vertexdeclaration in d3d9.

---

 dlls/wined3d/stateblock.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c
index 258fea0..e574d3a 100644
--- a/dlls/wined3d/stateblock.c
+++ b/dlls/wined3d/stateblock.c
@@ -765,7 +765,9 @@ static HRESULT  WINAPI IWineD3DStateBlockImpl_Capture(IWineD3DStateBlock *iface)
             This->IndexFmt = targetStateBlock->IndexFmt;
         }
 
-        if(This->changed.vertexDecl && This->vertexDecl != targetStateBlock->vertexDecl){
+        if (This->changed.vertexDecl && This->vertexDecl != targetStateBlock->vertexDecl
+                && ((IWineD3DImpl *)This->wineD3DDevice->wineD3D)->dxVersion != 9)
+        {
             TRACE("Updating vertex declaration from %p to %p\n", This->vertexDecl, targetStateBlock->vertexDecl);
 
             if (targetStateBlock->vertexDecl) IWineD3DVertexDeclaration_AddRef(targetStateBlock->vertexDecl);




More information about the wine-cvs mailing list