wined3d: Use wined3d_mask_from_size() in set_glsl_shader_program().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2022-01-25 11:51:45 +01:00 committed by Alexandre Julliard
parent 8c7dce6949
commit c8c79a9043
1 changed files with 1 additions and 1 deletions

View File

@ -10506,7 +10506,7 @@ static void set_glsl_shader_program(const struct wined3d_context_gl *context_gl,
{
unsigned int clip_distance_count = wined3d_popcount(pre_rasterization_shader->reg_maps.clip_distance_mask);
entry->shader_controlled_clip_distances = 1;
entry->clip_distance_mask = (1u << clip_distance_count) - 1;
entry->clip_distance_mask = wined3d_mask_from_size(clip_distance_count);
}
if (needs_legacy_glsl_syntax(gl_info))