Module: Mesa
Branch: master
Commit: 01d5d1e80ee506205e8615356e55e4bca16c6b11
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=01d5d1e80ee506205e8615356e55e4bca16c6b11

Author: Dave Airlie <airl...@redhat.com>
Date:   Wed Mar  2 09:41:38 2011 +1000

swrast/rgtc: fix rendering issues introduced when fix constants

The max value was wrong and this showed up in the piglit tests.

---

 src/mesa/main/texcompress_rgtc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/texcompress_rgtc.c b/src/mesa/main/texcompress_rgtc.c
index 2f3a0f2..f6a1825 100644
--- a/src/mesa/main/texcompress_rgtc.c
+++ b/src/mesa/main/texcompress_rgtc.c
@@ -443,7 +443,7 @@ _mesa_fetch_texel_2d_f_signed_rg_rgtc2(const struct 
gl_texture_image *texImage,
 #define TAG(x) signed_##x
 #define TYPE GLbyte
 #define T_MIN (GLbyte)-127
-#define T_MAX (GLbyte)127
+#define T_MAX (GLbyte)128
 
 #include "texcompress_rgtc_tmp.h"
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to