wined3d: Properly check if an attribute is used in drawStridedSlowVs().

This commit is contained in:
Henri Verbeet 2009-08-24 09:27:54 +02:00 committed by Alexandre Julliard
parent 16b0c6a0fd
commit c1c58f85ca
1 changed files with 3 additions and 2 deletions

View File

@ -451,8 +451,9 @@ static void drawStridedSlowVs(IWineD3DDevice *iface, const struct wined3d_stream
}
}
for(i = MAX_ATTRIBS - 1; i >= 0; i--) {
if(!si->elements[i].data) continue;
for (i = MAX_ATTRIBS - 1; i >= 0; i--)
{
if (!(si->use_map & (1 << i))) continue;
ptr = si->elements[i].data +
si->elements[i].stride * SkipnStrides +