summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olsak <maraeo@gmail.com>2010-02-08 08:30:26 -0700
committerBrian Paul <brianp@vmware.com>2010-02-08 08:30:26 -0700
commit11e0225f555aa1a1df8c3c584d14741488686f30 (patch)
treee16201e84eadef2104f96782a08006850d86670a
parent029c6b68dfbaaa767a5ab7939808fbf9790badaa (diff)
texture_srgb: add 1 bit tolerance
Signed-off-by: Brian Paul <brianp@vmware.com>
-rw-r--r--src/glean/ttexture_srgb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glean/ttexture_srgb.cpp b/src/glean/ttexture_srgb.cpp
index e27081b..d138289 100644
--- a/src/glean/ttexture_srgb.cpp
+++ b/src/glean/ttexture_srgb.cpp
@@ -155,7 +155,7 @@ TextureSRGBTest::testTextureFormat(GLenum intFormat, GLint components,
glGetIntegerv(GL_RED_BITS, &redBits);
glGetIntegerv(GL_ALPHA_BITS, &alphaBits);
- const float tolerance = 1.0 / ((1 << redBits) - 1);
+ const float tolerance = 1.0 / ((1 << (redBits - 1)) - 1);
// setup matrices
glMatrixMode(GL_PROJECTION);