gallium: set border color
authorRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 29 Apr 2008 15:54:38 +0000 (17:54 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 29 Apr 2008 15:54:38 +0000 (17:54 +0200)
src/mesa/state_tracker/st_atom_sampler.c

index 5dd242ac6626aeca1c13e641c0b16d6035fa9750..e1ddb53b80fc2a020a4ebfd4a8cbdd253b21b36d 100644 (file)
@@ -159,6 +159,11 @@ update_samplers(struct st_context *st)
          sampler->max_lod = MIN2(texobj->MaxLevel, texobj->MaxLod);
 #endif
 
+         sampler->border_color[0] = texobj->BorderColor[RCOMP];
+         sampler->border_color[1] = texobj->BorderColor[GCOMP];
+         sampler->border_color[2] = texobj->BorderColor[BCOMP];
+         sampler->border_color[3] = texobj->BorderColor[ACOMP];
+
         sampler->max_anisotropy = texobj->MaxAnisotropy;
          if (sampler->max_anisotropy > 1.0) {
             sampler->min_img_filter = PIPE_TEX_FILTER_ANISO;