Commit 92488ca7 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent d9e58e65
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment