wined3d: Return ~0U for wined3d_log2i(0).
This commit is contained in:
parent
3b06fc92f4
commit
6794a57073
|
@ -2690,9 +2690,9 @@ const struct wine_rb_functions wined3d_ffp_frag_program_rb_functions =
|
|||
|
||||
UINT wined3d_log2i(UINT32 x)
|
||||
{
|
||||
static const BYTE l[] =
|
||||
static const UINT l[] =
|
||||
{
|
||||
0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3,
|
||||
~0U, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3,
|
||||
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
|
||||
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
|
||||
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
|
||||
|
|
Loading…
Reference in New Issue