diff options
author | Brian <[email protected]> | 2008-11-10 20:15:28 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-11-10 20:16:00 -0700 |
commit | be1b8e5d6c6692010a3ec117035d9b218929e2b3 (patch) | |
tree | b21ff72555b2c3870036562924fa86c8042e53bc /src/mesa/main/histogram.c | |
parent | 8df4f6667f2892368791ae25505a996bc0edfacb (diff) |
mesa: new _mesa_is_pow_two() function
Diffstat (limited to 'src/mesa/main/histogram.c')
-rw-r--r-- | src/mesa/main/histogram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/histogram.c b/src/mesa/main/histogram.c index 77c458d540c..905c1ad8301 100644 --- a/src/mesa/main/histogram.c +++ b/src/mesa/main/histogram.c @@ -955,7 +955,7 @@ _mesa_Histogram(GLenum target, GLsizei width, GLenum internalFormat, GLboolean s } } - if (width != 0 && _mesa_bitcount(width) != 1) { + if (width != 0 && !_mesa_is_pow_two(width)) { if (target == GL_PROXY_HISTOGRAM) { error = GL_TRUE; } |