WINED3D: Increment texture_idx when continuing as well

H. Verbeet hverbeet at gmail.com
Sun Jul 16 15:03:15 CDT 2006


In the texture coordinate handling of drawStridedSlow(), increment
texture_idx when continuing the loop. This fixes bug 5661.
-------------- next part --------------
diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index 1a1d01e..f9ec8d8 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -1348,15 +1348,18 @@ static void drawStridedSlow(IWineD3DDevi
 
                 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 {
 


More information about the wine-patches mailing list