mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-11 17:27:17 +00:00
wined3d: Capture on a recorded stateblock doesn't record the vertexdeclaration in d3d9.
This commit is contained in:
parent
526839068f
commit
da5b491606
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue