wined3d: Properly check if an attribute is used in drawStridedInstanced().

This commit is contained in:
Henri Verbeet 2009-08-27 10:04:52 +02:00 committed by Alexandre Julliard
parent 3a7a0eb9dd
commit c514323442
1 changed files with 2 additions and 0 deletions

View File

@ -522,6 +522,8 @@ static inline void drawStridedInstanced(IWineD3DDevice *iface, const struct wine
for (i = 0; i < sizeof(si->elements) / sizeof(*si->elements); ++i)
{
if (!(si->use_map & (1 << i))) continue;
if (stateblock->streamFlags[si->elements[i].stream_idx] & WINED3DSTREAMSOURCE_INSTANCEDATA)
{
instancedData[numInstancedAttribs] = i;