Commit e93e943b authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Use wined3d_bit_scan() in context_unload_numbered_arrays().

parent 8dc789fe
......@@ -5273,15 +5273,13 @@ static void context_unload_numbered_array(struct wined3d_context *context, unsig
context->numbered_array_mask &= ~(1u << i);
}
/* This should match any arrays loaded in loadNumberedArrays.
* TODO: Only load / unload arrays if we have to. */
static void context_unload_numbered_arrays(struct wined3d_context *context)
{
unsigned int i;
/* Disable any attributes. */
for (i = 0; i < context->gl_info->limits.vertex_attribs; ++i)
while (context->numbered_array_mask)
{
i = wined3d_bit_scan(&context->numbered_array_mask);
context_unload_numbered_array(context, i);
}
}
......
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