Commit afd5a53b authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Load texture coordinates from the correct streams.

This fixes a regression introduced by commit a2febdd2.
parent 87fef9fd
...@@ -395,10 +395,10 @@ static void drawStridedSlow(IWineD3DDevice *iface, const WineDirect3DVertexStrid ...@@ -395,10 +395,10 @@ static void drawStridedSlow(IWineD3DDevice *iface, const WineDirect3DVertexStrid
continue; continue;
} }
if(sd->u.s.texCoords[textureNo].lpData) if(sd->u.s.texCoords[coordIdx].lpData)
{ {
texCoords[textureNo] = texCoords[coordIdx] =
sd->u.s.texCoords[textureNo].lpData + streamOffset[sd->u.s.texCoords[textureNo].streamNo]; sd->u.s.texCoords[coordIdx].lpData + streamOffset[sd->u.s.texCoords[coordIdx].streamNo];
tex_mask |= (1 << textureNo); tex_mask |= (1 << textureNo);
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment