[WINED3D 5] Fix STREAM flag override
Ivan Gyurdiev
ivg231 at gmail.com
Tue Jul 4 02:27:25 CDT 2006
When SetStreamSource is called it will set the STREAM flag on the new
buffer, and then unset the STREAM flag on the old buffer. When the old
and new buffer are the same, this results in the STREAM flag being
cleared incorrectly.
Stefan Dosinger cc'ed.
-------------- next part --------------
---
dlls/wined3d/device.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 4a5d195..4c8aca3 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -2417,7 +2417,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl
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
--
1.4.0
More information about the wine-patches
mailing list