Stefan Dösinger : wined3d: Read the old streamsource from the correct stateblock.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Aug 28 07:50:09 CDT 2007


Module: wine
Branch: master
Commit: c52a190a881e50fd9d63d3f2bcc0866a488a5248
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c52a190a881e50fd9d63d3f2bcc0866a488a5248

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sun Aug 19 20:37:50 2007 +0200

wined3d: Read the old streamsource from the correct stateblock.

---

 dlls/wined3d/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 21fbf25..93e825a 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -2240,7 +2240,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSource(IWineD3DDevice *iface,
         return WINED3DERR_INVALIDCALL;
     }
 
-    oldSrc = This->stateBlock->streamSource[StreamNumber];
+    oldSrc = This->updateStateBlock->streamSource[StreamNumber];
     TRACE("(%p) : StreamNo: %u, OldStream (%p), NewStream (%p), OffsetInBytes %u, NewStride %u\n", This, StreamNumber, oldSrc, pStreamData, OffsetInBytes, Stride);
 
     This->updateStateBlock->changed.streamSource[StreamNumber] = TRUE;




More information about the wine-cvs mailing list