From afd5a53bd099f5aff6005c257ee80a719bbd6dec Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 8 Dec 2008 10:30:01 +0100 Subject: [PATCH] wined3d: Load texture coordinates from the correct streams. This fixes a regression introduced by commit a2febdd200f7149cff7fe923b7316dcdafca693a. --- dlls/wined3d/drawprim.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index 28b6c30766..7603103fb4 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -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 -- 2.32.0.93.g670b81a890