Hello,
If a TextBlockTextRenderer has filters applied, it would not be restored correctly after context loss on Android.
texture.root.onRestore = function():void
{
var starling:Starling = self.stage !== null ? self.stage.starling : Starling.current;
var scaleFactor:Number = starling.contentScaleFactor;
if(texture.scale != scaleFactor)
{
//if we've changed between scale factors, we need to
//recreate the texture to match the new scale factor.
invalidate(INVALIDATION_FLAG_SIZE);
}
else if(filter){
invalidate(INVALIDATION_FLAG_ALL); <--- I added this
}
else
{
HELPER_MATRIX.identity();
HELPER_MATRIX.scale(scaleFactor, scaleFactor);
var offsetY:Number = self.getVerticalAlignOffsetY();
var bitmapData:BitmapData = self.drawTextLinesRegionToBitmapData(
snapshot.x, snapshot.y - offsetY, texture.nativeWidth, texture.nativeHeight);
texture.root.uploadBitmapData(bitmapData);
bitmapData.dispose();
}
};