wined3d: Simplify checking if an attribute is used in loadNumberedArrays().

oldstable
Henri Verbeet 2009-01-09 10:23:42 +01:00 committed by Alexandre Julliard
parent d9e58e6591
commit 92488ca7c1
1 changed files with 1 additions and 1 deletions

View File

@ -3900,7 +3900,7 @@ static inline void loadNumberedArrays(IWineD3DStateBlockImpl *stateblock,
stateblock->wineD3DDevice->instancedDraw = FALSE;
for (i = 0; i < MAX_ATTRIBS; i++) {
if (!strided->u.input[i].VBO && !strided->u.input[i].lpData)
if (!(strided->use_map & (1 << i)))
{
if (context->numbered_array_mask & (1 << i)) unload_numbered_array(stateblock, context, i);
continue;