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

wined3d: Use wined3d_bit_scan() in context_preload_textures().

parent a7cd33ef
......@@ -390,12 +390,12 @@ void context_preload_textures(struct wined3d_context *context, const struct wine
}
else
{
WORD ffu_map = context->fixed_function_usage_map;
uint32_t ffu_map = context->fixed_function_usage_map;
for (i = 0; ffu_map; ffu_map >>= 1, ++i)
while (ffu_map)
{
if (ffu_map & 1)
context_preload_texture(context, state, i);
i = wined3d_bit_scan(&ffu_map);
context_preload_texture(context, state, 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