summaryrefslogtreecommitdiff
path: root/src/mesa/main/colortab.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-11-10 20:15:28 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-11-10 20:16:00 -0700
commitbe1b8e5d6c6692010a3ec117035d9b218929e2b3 (patch)
treeb21ff72555b2c3870036562924fa86c8042e53bc /src/mesa/main/colortab.c
parent8df4f6667f2892368791ae25505a996bc0edfacb (diff)
mesa: new _mesa_is_pow_two() function
Diffstat (limited to 'src/mesa/main/colortab.c')
-rw-r--r--src/mesa/main/colortab.c2
1 files changed, 1 insertions, 1 deletions
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;