Skip to content

Commit

Permalink
use non-gpu-backed canvaskit for testing and stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
smolck committed Sep 8, 2021
1 parent 529c4dd commit c1f1435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/font-texture-atlas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c1f1435

Please sign in to comment.