diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 21fbf25c8c2..93e825ab285 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -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;