Ivan Gyurdiev : wined3d: Fix STREAM flag override.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jul 6 10:44:06 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: bbe7b40a71e18be90a6f4fbd2300a6c82af95a87
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=bbe7b40a71e18be90a6f4fbd2300a6c82af95a87
Author: Ivan Gyurdiev <ivg231 at gmail.com>
Date: Tue Jul 4 01:27:25 2006 -0600
wined3d: Fix STREAM flag override.
---
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 edaa221..860eba5 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -2424,7 +2424,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
More information about the wine-cvs
mailing list