wined3d: Rename build_dxtn_alpha_table() to build_bc3_alpha_table().

Since it's specific to BC3, as pointed out by Matteo.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2018-08-16 12:09:18 +04:30 committed by Alexandre Julliard
parent e215d070cf
commit 43fc25b1fb
1 changed files with 2 additions and 2 deletions

View File

@ -391,7 +391,7 @@ static void build_dxtn_colour_table(WORD colour0, WORD colour1,
}
}
static void build_dxtn_alpha_table(BYTE alpha0, BYTE alpha1, BYTE alpha_table[8])
static void build_bc3_alpha_table(BYTE alpha0, BYTE alpha1, BYTE alpha_table[8])
{
unsigned int i;
@ -449,7 +449,7 @@ static void decompress_dxtn_block(const BYTE *src, BYTE *dst, unsigned int width
alpha_bits = s[0];
if (format_id == WINED3DFMT_BC3_UNORM)
{
build_dxtn_alpha_table(alpha_bits & 0xff, (alpha_bits >> 8) & 0xff, alpha_table);
build_bc3_alpha_table(alpha_bits & 0xff, (alpha_bits >> 8) & 0xff, alpha_table);
alpha_bits >>= 16;
}