Remove todo
Not much gain by caching the value
This commit is contained in:
@@ -291,7 +291,6 @@ export class TextureAtlas implements ITextureAtlas {
|
|||||||
break;
|
break;
|
||||||
case Attributes.CM_RGB:
|
case Attributes.CM_RGB:
|
||||||
const arr = AttributeData.toColorRGB(bgColor);
|
const arr = AttributeData.toColorRGB(bgColor);
|
||||||
// TODO: This object creation is slow
|
|
||||||
result = channels.toColor(arr[0], arr[1], arr[2]);
|
result = channels.toColor(arr[0], arr[1], arr[2]);
|
||||||
break;
|
break;
|
||||||
case Attributes.CM_DEFAULT:
|
case Attributes.CM_DEFAULT:
|
||||||
|
|||||||
Reference in New Issue
Block a user