From 5192810b0f4d500a7a98ad58a728ba7a8fd12606 Mon Sep 17 00:00:00 2001 From: KaNaDaAT Date: Mon, 11 Mar 2024 21:34:16 +0100 Subject: [PATCH] fix: renderBatch --- src/marks/line.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/marks/line.ts b/src/marks/line.ts index d8d9809..138ac5b 100644 --- a/src/marks/line.ts +++ b/src/marks/line.ts @@ -62,7 +62,7 @@ function draw(device: GPUDevice, ctx: GPUVegaCanvasContext, scene: GPUVegaScene, _bufferManager.setOffset([vb.x1, vb.y1]); // console.log("Line"); - if (ctx._renderer.wgOptions.simpleLine === true) { + if (ctx._renderer.wgOptions.renderBatch === true) { const uniformBindGroup = Renderer.createUniformBindGroup("S" + drawName, device, _pipeline2, _bufferManager.createUniformBuffer()) const attributes = createAttributes(items); const instanceBuffer = _bufferManager.createInstanceBuffer(attributes);