aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorXiang, Haihao <[email protected]>2008-12-18 12:57:41 +0800
committerBrian Paul <[email protected]>2008-12-18 14:17:06 -0700
commit8b0b881438484234f1ab4ac07fdb7ae4a0a66759 (patch)
treece2d6439a13616db004a07aea50d11e78b7de74e /src/mesa
parent36920a24d643ebbe8b5d21baddd0a32ac7aa4e9b (diff)
i915: check WRAP_T instead of WRAP_R for cube map texture.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i915/i915_texstate.c2
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 d53e2cbd5aa..adbb52a3a3b 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 */