Commit 0fd45ba2 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Use wined3d_mask_from_size() in wined3d_context_gl_enable_clip_distances().

parent d5fa5397
......@@ -2396,8 +2396,8 @@ void wined3d_context_gl_enable_clip_distances(struct wined3d_context_gl *context
clip_distance_count = gl_info->limits.user_clip_distances;
disable_mask = ~enable_mask;
enable_mask &= (1u << clip_distance_count) - 1;
disable_mask &= (1u << clip_distance_count) - 1;
enable_mask &= wined3d_mask_from_size(clip_distance_count);
disable_mask &= wined3d_mask_from_size(clip_distance_count);
current_mask = context_gl->c.clip_distance_mask;
context_gl->c.clip_distance_mask = enable_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