wined3d: Use wined3d_mask_from_size() in wined3d_context_gl_enable_clip_distances().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2021-06-25 15:01:31 +02:00 committed by Alexandre Julliard
parent d5fa539749
commit 0fd45ba2be
1 changed files with 2 additions and 2 deletions

View File

@ -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;