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

wined3d: Use wined3d_bit_scan() in context_update_stream_info().

parent 1e332808
...@@ -266,20 +266,19 @@ void context_update_stream_info(struct wined3d_context *context, const struct wi ...@@ -266,20 +266,19 @@ void context_update_stream_info(struct wined3d_context *context, const struct wi
const struct wined3d_d3d_info *d3d_info = context->d3d_info; const struct wined3d_d3d_info *d3d_info = context->d3d_info;
DWORD prev_all_vbo = stream_info->all_vbo; DWORD prev_all_vbo = stream_info->all_vbo;
unsigned int i; unsigned int i;
WORD map; uint32_t map;
wined3d_stream_info_from_declaration(stream_info, state, d3d_info); wined3d_stream_info_from_declaration(stream_info, state, d3d_info);
stream_info->all_vbo = 1; stream_info->all_vbo = 1;
for (i = 0, map = stream_info->use_map; map; map >>= 1, ++i) map = stream_info->use_map;
while (map)
{ {
struct wined3d_stream_info_element *element; struct wined3d_stream_info_element *element;
struct wined3d_bo_address data; struct wined3d_bo_address data;
struct wined3d_buffer *buffer; struct wined3d_buffer *buffer;
if (!(map & 1)) i = wined3d_bit_scan(&map);
continue;
element = &stream_info->elements[i]; element = &stream_info->elements[i];
buffer = state->streams[element->stream_idx].buffer; buffer = state->streams[element->stream_idx].buffer;
......
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