wined3d: Read the old streamsource from the correct stateblock.

This commit is contained in:
Stefan Dösinger 2007-08-19 20:37:50 +02:00 committed by Alexandre Julliard
parent 4779a27eed
commit c52a190a88
1 changed files with 1 additions and 1 deletions

View File

@ -2240,7 +2240,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSource(IWineD3DDevice *iface,
return WINED3DERR_INVALIDCALL;
}
oldSrc = This->stateBlock->streamSource[StreamNumber];
oldSrc = This->updateStateBlock->streamSource[StreamNumber];
TRACE("(%p) : StreamNo: %u, OldStream (%p), NewStream (%p), OffsetInBytes %u, NewStride %u\n", This, StreamNumber, oldSrc, pStreamData, OffsetInBytes, Stride);
This->updateStateBlock->changed.streamSource[StreamNumber] = TRUE;