swap abs() for fabs() in composite
The non-vector fallback path had abs(double). Thanks brcarp. See https://github.com/libvips/libvips/issues/1572
This commit is contained in:
parent
03399b4d7e
commit
73c1331439
@ -621,7 +621,7 @@ vips_composite_base_blend( VipsCompositeBase *composite,
|
||||
|
||||
case VIPS_BLEND_MODE_DIFFERENCE:
|
||||
for( int b = 0; b < bands; b++ )
|
||||
f[b] = abs( B[b] - A[b] );
|
||||
f[b] = fabs( B[b] - A[b] );
|
||||
break;
|
||||
|
||||
case VIPS_BLEND_MODE_EXCLUSION:
|
||||
|
Loading…
Reference in New Issue
Block a user