Mesa (intel-2008-q4): i915: check WRAP_T instead of WRAP_R for cube map texture.

Haihao Xiang haihao at kemper.freedesktop.org
Wed Dec 17 21:08:32 PST 2008


Module: Mesa
Branch: intel-2008-q4
Commit: f96baeaac3ef41260ac3975750627ece073fdce0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f96baeaac3ef41260ac3975750627ece073fdce0

Author: Xiang, Haihao <haihao.xiang at intel.com>
Date:   Thu Dec 18 12:57:41 2008 +0800

i915: check WRAP_T instead of WRAP_R for cube map texture.
(cherry picked from commit cb453244caa15342bf229ee5ae16a78d038b8bdc)

---

 src/mesa/drivers/dri/i915/i915_texstate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i915/i915_texstate.c b/src/mesa/drivers/dri/i915/i915_texstate.c
index d53e2cb..adbb52a 100644
--- a/src/mesa/drivers/dri/i915/i915_texstate.c
+++ b/src/mesa/drivers/dri/i915/i915_texstate.c
@@ -300,7 +300,7 @@ i915_update_tex_unit(struct intel_context *intel, GLuint unit, GLuint ss3)
        */
       if (tObj->Target == GL_TEXTURE_CUBE_MAP_ARB &&
           (((ws != GL_CLAMP) && (ws != GL_CLAMP_TO_EDGE)) ||
-           ((wr != GL_CLAMP) && (wr != GL_CLAMP_TO_EDGE))))
+           ((wt != GL_CLAMP) && (wt != GL_CLAMP_TO_EDGE))))
           return GL_FALSE;
 
       state[I915_TEXREG_SS3] = ss3;     /* SS3_NORMALIZED_COORDS */



More information about the mesa-commit mailing list