Commit da5b4916 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent 52683906
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment