Commit bbe7b40a authored by Ivan Gyurdiev's avatar Ivan Gyurdiev Committed by Alexandre Julliard

wined3d: Fix STREAM flag override.

parent e260e9fd
...@@ -2424,7 +2424,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSource(IWineD3DDevice *iface, ...@@ -2424,7 +2424,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSource(IWineD3DDevice *iface,
return WINED3D_OK; 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 */ /* 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. /* 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 which suggests that we shouldn't be ref counting? and do need a _release on the stream source to reset the stream source
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment