Module: wine Branch: master Commit: afd5a53bd099f5aff6005c257ee80a719bbd6dec URL: http://source.winehq.org/git/wine.git/?a=commit;h=afd5a53bd099f5aff6005c257e...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Dec 8 10:30:01 2008 +0100
wined3d: Load texture coordinates from the correct streams.
This fixes a regression introduced by commit a2febdd200f7149cff7fe923b7316dcdafca693a.
---
dlls/wined3d/drawprim.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index 28b6c30..7603103 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