Add a null check to charatlas beginFrame call

Fixes #1511
This commit is contained in:
Daniel Imms
2018-06-12 17:27:36 +02:00
parent fb63b3475b
commit ee935cc68c
+3 -1
View File
@@ -208,7 +208,9 @@ export class TextRenderLayer extends BaseRenderLayer {
return;
}
this._charAtlas.beginFrame();
if (this._charAtlas) {
this._charAtlas.beginFrame();
}
this.clearCells(0, firstRow, terminal.cols, lastRow - firstRow + 1);
this._drawBackground(terminal, firstRow, lastRow);