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:
parent
0f55ef3bef
commit
dabcbe83e7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue