[6/10] WineD3D: Do not leave SetStreamSource early
Stefan Dösinger
stefan at codeweavers.com
Wed Feb 14 10:52:19 CST 2007
The offset may be changed, so the state has to be dirtified even if the buffer
alone is the same.
-------------- next part --------------
From a75874e8638d58c52a0838e549297972b9820eca Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan at codeweavers.com>
Date: Fri, 2 Feb 2007 13:43:53 +0100
Subject: [PATCH] WineD3D: Do not leave SetStreamSource early
---
dlls/wined3d/device.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index a28714d..757b147 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -2002,10 +2002,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSource(IWineD3DDevice *iface,
return WINED3D_OK;
}
- /* 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.4.3
More information about the wine-patches
mailing list