allow transparency in chunks again

This commit is contained in:
HF 2024-02-05 14:16:26 +01:00
parent c2cd76f54d
commit b7ed1a4ca0

View File

@ -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;