From ae839b2d7d53361c5b48452098afae9cf07d35ef Mon Sep 17 00:00:00 2001 From: Misiur Date: Tue, 13 Sep 2016 18:29:41 +0200 Subject: [PATCH] Special case for alpha ColorMatrix table --- lime/math/ColorMatrix.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lime/math/ColorMatrix.hx b/lime/math/ColorMatrix.hx index 015950e0e..b4c4361b8 100644 --- a/lime/math/ColorMatrix.hx +++ b/lime/math/ColorMatrix.hx @@ -104,7 +104,9 @@ abstract ColorMatrix(Float32Array) from Float32Array to Float32Array { var value:Int; - for (i in 0...256) { + __alphaTable[0] = 0; + + for (i in 1...256) { value = Math.floor (i * alphaMultiplier + alphaOffset); if (value > 0xFF) value = 0xFF;