diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_MixOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_MixOperation.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_MixOperation.h b/source/blender/compositor/operations/COM_MixOperation.h index fbf60fb9d37..cea0e59b541 100644 --- a/source/blender/compositor/operations/COM_MixOperation.h +++ b/source/blender/compositor/operations/COM_MixOperation.h @@ -39,10 +39,7 @@ class MixBaseOperation : public NodeOperation { inline void clampIfNeeded(float color[4]) { if (m_useClamp) { - CLAMP(color[0], 0.0f, 1.0f); - CLAMP(color[1], 0.0f, 1.0f); - CLAMP(color[2], 0.0f, 1.0f); - CLAMP(color[3], 0.0f, 1.0f); + clamp_v4(color, 0.0f, 1.0f); } } |