From be1b8e5d6c6692010a3ec117035d9b218929e2b3 Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 10 Nov 2008 20:15:28 -0700 Subject: mesa: new _mesa_is_pow_two() function --- src/mesa/main/colortab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/main/colortab.c') diff --git a/src/mesa/main/colortab.c b/src/mesa/main/colortab.c index 97120398f9..bd9cf438b4 100644 --- a/src/mesa/main/colortab.c +++ b/src/mesa/main/colortab.c @@ -383,7 +383,7 @@ _mesa_ColorTable( GLenum target, GLenum internalFormat, return; } - if (width < 0 || (width != 0 && _mesa_bitcount(width) != 1)) { + if (width < 0 || (width != 0 && !_mesa_is_pow_two(width))) { /* error */ if (proxy) { table->Size = 0; -- cgit v1.2.3