From c1f14357e0ec35a023bbf94266432c002fd7ba84 Mon Sep 17 00:00:00 2001 From: smolck <46855713+smolck@users.noreply.github.com> Date: Tue, 7 Sep 2021 22:30:34 -0500 Subject: [PATCH] use non-gpu-backed canvaskit for testing and stuff --- src/render/font-texture-atlas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/font-texture-atlas.ts b/src/render/font-texture-atlas.ts index 691e0268..cb306192 100644 --- a/src/render/font-texture-atlas.ts +++ b/src/render/font-texture-atlas.ts @@ -51,7 +51,7 @@ export default class FontTextureAtlas { this.width = atlasWidth this.workspaceRef = workspace - this.surface = canvasKit.MakeWebGLCanvasSurface(this.canvasElement)! + this.surface = canvasKit.MakeSWCanvasSurface(this.canvasElement)! this.canvas = this.surface.getCanvas() this.canvas.scale(window.devicePixelRatio, window.devicePixelRatio)