wined3d: Use wined3d_mask_from_size() in wined3d_fixup_alpha().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2021-09-10 21:32:51 +02:00 committed by Alexandre Julliard
parent 4261369e5d
commit 554a4a111a
1 changed files with 1 additions and 1 deletions

View File

@ -2358,7 +2358,7 @@ static void wined3d_fixup_alpha(const struct wined3d_format *format, const uint8
unsigned int x, y;
byte_count = format->byte_count;
alpha_mask = ((1u << format->alpha_size) - 1) << format->alpha_offset;
alpha_mask = wined3d_mask_from_size(format->alpha_size) << format->alpha_offset;
switch (byte_count)
{