Update colorMatrix alpha table
This commit is contained in:
@@ -103,9 +103,8 @@ abstract ColorMatrix(Float32Array) from Float32Array to Float32Array {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var value:Int;
|
var value:Int;
|
||||||
|
|
||||||
__alphaTable[0] = 0;
|
__alphaTable[0] = 0;
|
||||||
|
|
||||||
for (i in 1...256) {
|
for (i in 1...256) {
|
||||||
|
|
||||||
value = Math.floor (i * alphaMultiplier + alphaOffset);
|
value = Math.floor (i * alphaMultiplier + alphaOffset);
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ namespace lime {
|
|||||||
void ColorMatrix::GetAlphaTable (unsigned char* table) {
|
void ColorMatrix::GetAlphaTable (unsigned char* table) {
|
||||||
|
|
||||||
GetDataTable (table, GetAlphaMultiplier (), GetAlphaOffset ());
|
GetDataTable (table, GetAlphaMultiplier (), GetAlphaOffset ());
|
||||||
|
table[0] = 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user