wined3d: Load texture coordinates from the correct streams.

This fixes a regression introduced by commit
a2febdd200.
This commit is contained in:
Henri Verbeet 2008-12-08 10:30:01 +01:00 committed by Alexandre Julliard
parent 87fef9fd22
commit afd5a53bd0
1 changed files with 3 additions and 3 deletions

View File

@ -395,10 +395,10 @@ static void drawStridedSlow(IWineD3DDevice *iface, const WineDirect3DVertexStrid
continue;
}
if(sd->u.s.texCoords[textureNo].lpData)
if(sd->u.s.texCoords[coordIdx].lpData)
{
texCoords[textureNo] =
sd->u.s.texCoords[textureNo].lpData + streamOffset[sd->u.s.texCoords[textureNo].streamNo];
texCoords[coordIdx] =
sd->u.s.texCoords[coordIdx].lpData + streamOffset[sd->u.s.texCoords[coordIdx].streamNo];
tex_mask |= (1 << textureNo);
}
else