i915: check WRAP_T instead of WRAP_R for cube map texture.
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 18 Dec 2008 04:57:41 +0000 (12:57 +0800)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 18 Dec 2008 21:17:06 +0000 (14:17 -0700)
src/mesa/drivers/dri/i915/i915_texstate.c

index d53e2cbd5aa288a94c81e9f28f19fa3c6d532e4b..adbb52a3a3b2c7a5a192523277636532ac0c3501 100644 (file)
@@ -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 */