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

wined3d: Use wined3d_mask_from_size() in wined3d_render_pass_vk_init().

parent 76cef086
......@@ -1154,7 +1154,7 @@ static bool wined3d_render_pass_vk_init(struct wined3d_render_pass_vk *pass,
rt_count = 0;
attachment_count = 0;
mask = key->rt_mask & ((1u << WINED3D_MAX_RENDER_TARGETS) - 1);
mask = key->rt_mask & wined3d_mask_from_size(WINED3D_MAX_RENDER_TARGETS);
while (mask)
{
i = wined3d_bit_scan(&mask);
......@@ -1181,7 +1181,7 @@ static bool wined3d_render_pass_vk_init(struct wined3d_render_pass_vk *pass,
rt_count = i + 1;
}
mask = ~key->rt_mask & ((1u << rt_count) - 1);
mask = ~key->rt_mask & wined3d_mask_from_size(rt_count);
while (mask)
{
i = wined3d_bit_scan(&mask);
......
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