From b7ed1a4ca0e94a4e73aa7c1c6805fc752828f7a6 Mon Sep 17 00:00:00 2001 From: HF Date: Mon, 5 Feb 2024 14:16:26 +0100 Subject: [PATCH] allow transparency in chunks again --- src/ui/Chunk2D.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/Chunk2D.js b/src/ui/Chunk2D.js index 5ec91f44..0c545b57 100644 --- a/src/ui/Chunk2D.js +++ b/src/ui/Chunk2D.js @@ -17,7 +17,7 @@ class Chunk2D extends Chunk { this.palette = palette; this.image = document.createElement('canvas'); // do NOT use willReadFrequently, it massively trashes Render2D.renderChunks - this.image.getContext('2d', { alpha: false }); + this.image.getContext('2d'); this.image.width = TILE_SIZE; this.image.height = TILE_SIZE; this.ready = false;