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

This commit is contained in:
Henri Verbeet 2009-10-13 10:38:01 +02:00 committed by Alexandre Julliard
parent 526839068f
commit da5b491606
1 changed files with 3 additions and 1 deletions

View File

@ -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);