diff options
author | Michal Krol <[email protected]> | 2010-01-06 14:12:10 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-01-06 16:11:26 +0100 |
commit | 4e014c0a148ba3ac015d0e83dcf975ca6e814e1f (patch) | |
tree | a991b6d64eef210b39d2ae766485f8b9ced7b0a6 /src/gallium/drivers/softpipe | |
parent | 4fd566ea31f7ef64edb997e1731b131668c431ea (diff) |
pipe_sampler_state::compare_mode is not a boolean enable flag.
It's a 1-bit enum.
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_tex_sample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c index e26153b1d90..903d21a0210 100644 --- a/src/gallium/drivers/softpipe/sp_tex_sample.c +++ b/src/gallium/drivers/softpipe/sp_tex_sample.c @@ -1862,7 +1862,7 @@ sp_create_sampler_varient( const struct pipe_sampler_state *sampler, break; } - if (sampler->compare_mode != FALSE) { + if (sampler->compare_mode != PIPE_TEX_COMPARE_NONE) { samp->compare = sample_compare; } else { |