Ensure GlyphRenderer._atlas exists on beginFrame

This should fix an exception breaking it in vscode
This commit is contained in:
Daniel Imms
2019-07-04 08:36:44 -07:00
parent 38f2e7a81d
commit 0898de147f
@@ -165,7 +165,7 @@ export class GlyphRenderer {
}
public beginFrame(): boolean {
return this._atlas.beginFrame();
return this._atlas ? this._atlas.beginFrame() : true;
}
public updateCell(x: number, y: number, code: number, attr: number, bg: number, fg: number, chars: string): void {