summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_bld_sample.c
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2010-01-06 14:12:10 +0100
committerMichal Krol <michal@vmware.com>2010-01-06 16:11:26 +0100
commit4e014c0a148ba3ac015d0e83dcf975ca6e814e1f (patch)
treea991b6d64eef210b39d2ae766485f8b9ced7b0a6 /src/gallium/drivers/llvmpipe/lp_bld_sample.c
parent4fd566ea31f7ef64edb997e1731b131668c431ea (diff)
pipe_sampler_state::compare_mode is not a boolean enable flag.
It's a 1-bit enum.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_sample.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_sample.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_sample.c b/src/gallium/drivers/llvmpipe/lp_bld_sample.c
index af70ddc6ab..9003e108c1 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_sample.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_sample.c
@@ -69,8 +69,8 @@ lp_sampler_static_state(struct lp_sampler_static_state *state,
state->min_img_filter = sampler->min_img_filter;
state->min_mip_filter = sampler->min_mip_filter;
state->mag_img_filter = sampler->mag_img_filter;
- if(sampler->compare_mode) {
- state->compare_mode = sampler->compare_mode;
+ state->compare_mode = sampler->compare_mode;
+ if(sampler->compare_mode != PIPE_TEX_COMPARE_NONE) {
state->compare_func = sampler->compare_func;
}
state->normalized_coords = sampler->normalized_coords;