wined3d: Catch NOP SetStreamSource changes.

This commit is contained in:
Stefan Dösinger 2007-01-04 00:08:20 +01:00 committed by Alexandre Julliard
parent 4e0f7ccd7d
commit 5d2ce97136
1 changed files with 9 additions and 0 deletions

View File

@ -2211,6 +2211,15 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSource(IWineD3DDevice *iface,
This->updateStateBlock->changed.streamSource[StreamNumber] = TRUE; This->updateStateBlock->changed.streamSource[StreamNumber] = TRUE;
This->updateStateBlock->set.streamSource[StreamNumber] = TRUE; This->updateStateBlock->set.streamSource[StreamNumber] = TRUE;
if(oldSrc == pStreamData &&
This->updateStateBlock->streamStride[StreamNumber] == Stride &&
This->updateStateBlock->streamOffset[StreamNumber] == OffsetInBytes &&
This->updateStateBlock->streamFlags[StreamNumber] == streamFlags) {
TRACE("Application is setting the old values over, nothing to do\n");
return WINED3D_OK;
}
This->updateStateBlock->streamSource[StreamNumber] = pStreamData; This->updateStateBlock->streamSource[StreamNumber] = pStreamData;
if (pStreamData) { if (pStreamData) {
This->updateStateBlock->streamStride[StreamNumber] = Stride; This->updateStateBlock->streamStride[StreamNumber] = Stride;