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 98bc319d..02744e9e 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -133,10 +133,10 @@ static double gradient(struct image *image, int k, Reflection *refl, double r) return (nom/den) * g; case REF_R : - if ( clamp_low == 0 ) { + if ( !clamp_low ) { g += partiality_rgradient(r1, r); } - if ( clamp_high == 0 ) { + if ( !clamp_high ) { g += partiality_rgradient(r2, r); } return g; |