From bbe7b40a71e18be90a6f4fbd2300a6c82af95a87 Mon Sep 17 00:00:00 2001 From: Ivan Gyurdiev Date: Tue, 4 Jul 2006 01:27:25 -0600 Subject: [PATCH] wined3d: Fix STREAM flag override. --- dlls/wined3d/device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index edaa221acda..860eba5ddbf 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -2424,7 +2424,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSource(IWineD3DDevice *iface, return WINED3D_OK; } - /* Not recording... */ + /* Same stream object: no action */ + if (oldSrc == pStreamData) + return WINED3D_OK; + /* Need to do a getParent and pass the reffs up */ /* MSDN says ..... When an application no longer holds a references to this interface, the interface will automatically be freed. which suggests that we shouldn't be ref counting? and do need a _release on the stream source to reset the stream source