wined3d: Use wined3d_mask_from_size() in geometry_shader_init_stream_output().

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-24 13:59:05 +01:00 committed by Alexandre Julliard
parent b0a961eaca
commit e9a109835f
1 changed files with 1 additions and 1 deletions

View File

@ -3882,7 +3882,7 @@ static HRESULT geometry_shader_init_stream_output(struct wined3d_shader *shader,
return E_INVALIDARG; return E_INVALIDARG;
} }
mask = ((1u << e->component_count) - 1) << component_idx; mask = wined3d_mask_from_size(e->component_count) << component_idx;
if ((output->mask & 0xff & mask) != mask) if ((output->mask & 0xff & mask) != mask)
{ {
WARN("Invalid component range %u-%u (mask %#x), output mask %#x.\n", WARN("Invalid component range %u-%u (mask %#x), output mask %#x.\n",