diff options
author | Roland Scheidegger <[email protected]> | 2008-04-29 17:54:38 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2008-04-29 17:54:38 +0200 |
commit | 216603348c399b58fadf39b972d3f708e82f253b (patch) | |
tree | 5ec272e2aa221ec018455bc65501ccaccfdda32e | |
parent | 059ab50c60f19fd6dd30c574644c0e4e5747a330 (diff) |
gallium: set border color
-rw-r--r-- | src/mesa/state_tracker/st_atom_sampler.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_atom_sampler.c b/src/mesa/state_tracker/st_atom_sampler.c index 5dd242ac662..e1ddb53b80f 100644 --- a/src/mesa/state_tracker/st_atom_sampler.c +++ b/src/mesa/state_tracker/st_atom_sampler.c @@ -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; |