diff options
-rw-r--r-- | src/post-refinement.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index 1fd4d13b..db8d4990 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -132,10 +132,10 @@ static double gradient(struct image *image, int k, Reflection *refl, double r) return (nom/den) * g; case REF_R : - if ( !clamp_low ) { + if ( clamp_low == 0 ) { g += partiality_rgradient(r1, r); } - if ( !clamp_high ) { + if ( clamp_high == 0 ) { g += partiality_rgradient(r2, r); } return g; |