wined3d: Increment texture_idx when continuing as well.

This commit is contained in:
H. Verbeet 2006-07-16 22:03:15 +02:00 committed by Alexandre Julliard
parent 902b2a70a8
commit 593541a50c
1 changed files with 3 additions and 0 deletions

View File

@ -1357,15 +1357,18 @@ static void drawStridedSlow(IWineD3DDevice *iface, WineDirect3DVertexStridedData
if (coordIdx > 7) {
VTRACE(("tex: %d - Skip tex coords, as being system generated\n", textureNo));
++texture_idx;
continue;
} else if (coordIdx < 0) {
FIXME("tex: %d - Coord index %d is less than zero, expect a crash.\n", textureNo, coordIdx);
++texture_idx;
continue;
}
ptrToCoords = (float *)(sd->u.s.texCoords[coordIdx].lpData + (SkipnStrides * sd->u.s.texCoords[coordIdx].dwStride));
if (sd->u.s.texCoords[coordIdx].lpData == NULL) {
TRACE("tex: %d - Skipping tex coords, as no data supplied\n", textureNo);
++texture_idx;
continue;
} else {