Stefan Dösinger : wined3d: Dirtify the stream sources in DrawPrimitiveUP.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 4 04:45:10 CST 2007


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Thu Jan  4 00:14:20 2007 +0100

wined3d: Dirtify the stream sources in DrawPrimitiveUP.

---

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

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index e8397e3..c22dba9 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4741,6 +4741,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl
     This->stateBlock->streamStride[0] = VertexStreamZeroStride;
     This->stateBlock->streamIsUP = TRUE;
 
+    /* TODO: Only mark dirty if drawing from a different UP address */
+    IWineD3DDeviceImpl_MarkStateDirty(This, STATE_STREAMSRC);
+
     drawPrimitive(iface, PrimitiveType, PrimitiveCount, -This->stateBlock->baseVertexIndex /* start vertex */, 0  /* NumVertices */,
                   0 /* indxStart*/, 0 /* indxSize*/, NULL /* indxData */, 0 /* indxMin */);
 
@@ -4748,7 +4751,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl
     This->stateBlock->streamStride[0] = 0;
     This->stateBlock->streamSource[0] = NULL;
 
-    /*stream zero settings set to null at end, as per the msdn */
+    /* stream zero settings set to null at end, as per the msdn. No need to mark dirty here, the app has to set
+     * the new stream sources or use UP drawing again
+     */
     return WINED3D_OK;
 }
 




More information about the wine-cvs mailing list