Commit 554a4a11 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Use wined3d_mask_from_size() in wined3d_fixup_alpha().

parent 4261369e
......@@ -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)
{
......
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