wined3d: Pass the correct vertex count in DrawIndexedPrimitiveStrided().

This fixes a regression introduced by 2b2fc827ce.
This commit is contained in:
Henri Verbeet 2009-12-07 20:19:59 +01:00 committed by Alexandre Julliard
parent 3b93ff71c7
commit 8a833a2d75
1 changed files with 1 additions and 1 deletions

View File

@ -4997,7 +4997,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_DrawIndexedPrimitiveStrided(IWineD3DDev
This->stateBlock->streamIsUP = TRUE; This->stateBlock->streamIsUP = TRUE;
This->stateBlock->baseVertexIndex = 0; This->stateBlock->baseVertexIndex = 0;
This->up_strided = DrawPrimStrideData; 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; This->up_strided = NULL;
return WINED3D_OK; return WINED3D_OK;
} }