Stefan Dösinger : wined3d: Ignore tesselated and unused streams when comparing attribs.
Module: wine Branch: master Commit: 2eab3d5c112597ac2b399c0234d4282987864294 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2eab3d5c112597ac2b399c0234... Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Sat Dec 15 11:40:19 2007 +0100 wined3d: Ignore tesselated and unused streams when comparing attribs. --- dlls/wined3d/vertexshader.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/vertexshader.c b/dlls/wined3d/vertexshader.c index 13349de..e50bf8f 100644 --- a/dlls/wined3d/vertexshader.c +++ b/dlls/wined3d/vertexshader.c @@ -691,6 +691,10 @@ static inline BOOL swizzled_attribs_differ(IWineD3DVertexShaderImpl *This, IWine DWORD usage_idx; for(i = 0; i < vdecl->declarationWNumElements; i++) { + /* Ignore tesselated streams and the termination entry(position0, stream 255, unused) */ + if(vdecl->pDeclarationWine[i].Stream >= MAX_STREAMS || + vdecl->pDeclarationWine[i].Type == WINED3DDECLTYPE_UNUSED) continue; + for(j = 0; j < MAX_ATTRIBS; j++) { if(!This->baseShader.reg_maps.attributes[j]) continue;
participants (1)
-
Alexandre Julliard