From 8a833a2d75552283d41082512a403c9d834ad64b Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 7 Dec 2009 20:19:59 +0100 Subject: [PATCH] wined3d: Pass the correct vertex count in DrawIndexedPrimitiveStrided(). This fixes a regression introduced by 2b2fc827ce1f340554cc8d01f6b183d4a5c02114. --- dlls/wined3d/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index eb5ad5b72dd..b286b6928e9 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4997,7 +4997,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_DrawIndexedPrimitiveStrided(IWineD3DDev This->stateBlock->streamIsUP = TRUE; This->stateBlock->baseVertexIndex = 0; This->up_strided = DrawPrimStrideData; - drawPrimitive(iface, 0 /* numindices */, 0 /* start_idx */, idxSize, pIndexData); + drawPrimitive(iface, vertex_count, 0 /* start_idx */, idxSize, pIndexData); This->up_strided = NULL; return WINED3D_OK; }