projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
replace _mesa_is_pow_two with util_is_power_of_two_*
[mesa.git]
/
src
/
mesa
/
tnl
/
t_vb_light.c
diff --git
a/src/mesa/tnl/t_vb_light.c
b/src/mesa/tnl/t_vb_light.c
index cd0a5544c9399d3796a5ff15217766ce570a3ca5..655e5827d0c8756b9433be858ab444138d606734 100644
(file)
--- a/
src/mesa/tnl/t_vb_light.c
+++ b/
src/mesa/tnl/t_vb_light.c
@@
-399,7
+399,7
@@
static void validate_lighting( struct gl_context *ctx,
}
else {
/* Power of two means only a single active light. */
- if (
_mesa_is_pow_tw
o(ctx->Light._EnabledLights))
+ if (
util_is_power_of_two_or_zer
o(ctx->Light._EnabledLights))
tab = _tnl_light_fast_single_tab;
else
tab = _tnl_light_fast_tab;