From 2daa16c96ce5ce2a9bff2634574358687cfd866a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Sat, 18 Jun 2011 00:43:06 +0200 Subject: [PATCH] wined3d: Use base_vertex_index in drawStridedSlow, and only for indexed draws. --- dlls/wined3d/drawprim.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index d5a656e0b7d..3d867822176 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;