summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_fs.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-02-16 00:50:25 +0100
committerMarek Olšák <[email protected]>2011-03-29 12:50:28 +0200
commitf03791467090db49e5c3d6111cd8d2a7cbe31d75 (patch)
tree916b9405dfaaca329f633c60262bd591aabc3c93 /src/gallium/drivers/r300/r300_fs.c
parent8d4ec87d7f987b3852dafa6802815bb9a3ec7ad4 (diff)
r300g: enable clamping controls
Diffstat (limited to 'src/gallium/drivers/r300/r300_fs.c')
-rw-r--r--src/gallium/drivers/r300/r300_fs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c
index 4c502fefb3f..37fe6622cd7 100644
--- a/src/gallium/drivers/r300/r300_fs.c
+++ b/src/gallium/drivers/r300/r300_fs.c
@@ -146,10 +146,11 @@ static void get_external_state(
struct r300_fragment_program_external_state* state)
{
struct r300_textures_state *texstate = r300->textures_state.state;
+ struct r300_rs_state *rs = r300->rs_state.state;
unsigned i;
unsigned char *swizzle;
- state->frag_clamp = 0;
+ state->frag_clamp = rs ? rs->rs.clamp_fragment_color : 0;
for (i = 0; i < texstate->sampler_state_count; i++) {
struct r300_sampler_state *s = texstate->sampler_states[i];