wined3d: Return the correct vertex declaration.

In IWineD3DDeviceImpl_GetVertexDeclaration, return the vertex
declaration in This->stateblock instead of the one in
This->updateStateBlock.
This commit is contained in:
H. Verbeet 2005-12-14 10:50:27 +01:00 committed by Alexandre Julliard
parent 0f55ef3bef
commit dabcbe83e7
1 changed files with 1 additions and 1 deletions

View File

@ -3754,7 +3754,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetVertexDeclaration(IWineD3DDevice* iface, IW
TRACE("(%p) : ppDecl=%p\n", This, ppDecl);
*ppDecl = This->updateStateBlock->vertexDecl;
*ppDecl = This->stateBlock->vertexDecl;
if (NULL != *ppDecl) IWineD3DVertexDeclaration_AddRef(*ppDecl);
return D3D_OK;
}