replace _mesa_is_pow_two with util_is_power_of_two_*
[mesa.git] / src / mesa / tnl / t_vb_light.c
index cd0a5544c9399d3796a5ff15217766ce570a3ca5..655e5827d0c8756b9433be858ab444138d606734 100644 (file)
@@ -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_two(ctx->Light._EnabledLights))
+      if (util_is_power_of_two_or_zero(ctx->Light._EnabledLights))
         tab = _tnl_light_fast_single_tab;
       else
         tab = _tnl_light_fast_tab;