wined3d: Use wined3d_bit_scan() in context_update_stream_info().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1e33280864
commit
caea3d10fa
|
@ -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;
|
||||
DWORD prev_all_vbo = stream_info->all_vbo;
|
||||
unsigned int i;
|
||||
WORD map;
|
||||
uint32_t map;
|
||||
|
||||
wined3d_stream_info_from_declaration(stream_info, state, d3d_info);
|
||||
|
||||
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_bo_address data;
|
||||
struct wined3d_buffer *buffer;
|
||||
|
||||
if (!(map & 1))
|
||||
continue;
|
||||
|
||||
i = wined3d_bit_scan(&map);
|
||||
element = &stream_info->elements[i];
|
||||
buffer = state->streams[element->stream_idx].buffer;
|
||||
|
||||
|
|
Loading…
Reference in New Issue