i965: use BRW_TEXCOORDMODE_CLAMP instead of BRW_TEXCOORDMODE_CLAMP_BORDER
authorXiang, Haihao <haihao.xiang@intel.com>
Wed, 15 Aug 2007 05:28:00 +0000 (13:28 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 15 Aug 2007 05:28:00 +0000 (13:28 +0800)
to implement GL_CLAMP

src/mesa/drivers/dri/i965/brw_wm_sampler_state.c

index 93d4cfc3a5f2d739b7599a049f3c3f637761727f..83a4b02e483df812bbe604bb07d2aeb7c4c6ae2c 100644 (file)
@@ -54,7 +54,7 @@ static GLuint translate_wrap_mode( GLenum wrap )
    case GL_REPEAT: 
       return BRW_TEXCOORDMODE_WRAP;
    case GL_CLAMP:  
-      return BRW_TEXCOORDMODE_CLAMP_BORDER; /* conform likes it this way */
+      return BRW_TEXCOORDMODE_CLAMP;
    case GL_CLAMP_TO_EDGE: 
       return BRW_TEXCOORDMODE_CLAMP; /* conform likes it this way */
    case GL_CLAMP_TO_BORDER: