Don't apply the OECF twice to multi-stop gradients
Test: Manual
Change-Id: Icd65d906df2f0a059373edb8c6d55fe378c92f92
diff --git a/libs/hwui/GradientCache.cpp b/libs/hwui/GradientCache.cpp
index cd3ccf9..0972ac1 100644
--- a/libs/hwui/GradientCache.cpp
+++ b/libs/hwui/GradientCache.cpp
@@ -198,7 +198,7 @@
float amount, uint8_t*& dst) const {
float oppAmount = 1.0f - amount;
float* d = (float*) dst;
-#if ANDROID_LINEAR_BLENDING_ENABLED
+#ifdef ANDROID_ENABLE_LINEAR_BLENDING
*d++ = start.r * oppAmount + end.r * amount;
*d++ = start.g * oppAmount + end.g * amount;
*d++ = start.b * oppAmount + end.b * amount;