Skip to content
  • Massimo Valentini's avatar
    Bug 766683: Burn Mode on Paint tools are producing artefacts · 7858eb3d
    Massimo Valentini authored
    This operation produces NAN (0 / 0) and division
    by zero when a layer component is zero.
    
    Inline CLAMP to make sure it swallows also NAN.
    A NAN is mapped to 1 for backward compatibility.
    [the 2variate function comp (in[b], layer[b]) is
    discontinuous at layer[b] = 0]
    7858eb3d