Stefan Dösinger : wined3d: Use base_vertex_index in drawStridedSlow, and only for indexed draws.

Alexandre Julliard julliard at winehq.org
Mon Jun 20 14:24:07 CDT 2011


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sat Jun 18 00:43:06 2011 +0200

wined3d: Use base_vertex_index in drawStridedSlow, and only for indexed draws.

---

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

diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index d5a656e..3d86782 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -75,7 +75,7 @@ static void drawStridedSlow(struct wined3d_device *device, const struct wined3d_
     UINT vx_index;
     const struct wined3d_state *state = &device->stateBlock->state;
     const struct wined3d_stream_state *streams = state->streams;
-    LONG SkipnStrides = startIdx + state->load_base_vertex_index;
+    LONG SkipnStrides = startIdx;
     BOOL pixelShader = use_ps(state);
     BOOL specular_fog = FALSE;
     const BYTE *texCoords[WINED3DDP_MAXTEXCOORD];
@@ -230,9 +230,9 @@ static void drawStridedSlow(struct wined3d_device *device, const struct wined3d_
         {
             /* Indexed so work out the number of strides to skip */
             if (idxSize == 2)
-                SkipnStrides = pIdxBufS[startIdx + vx_index] + state->load_base_vertex_index;
+                SkipnStrides = pIdxBufS[startIdx + vx_index] + state->base_vertex_index;
             else
-                SkipnStrides = pIdxBufL[startIdx + vx_index] + state->load_base_vertex_index;
+                SkipnStrides = pIdxBufL[startIdx + vx_index] + state->base_vertex_index;
         }
 
         tmp_tex_mask = tex_mask;




More information about the wine-cvs mailing list