Skip to content

Commit

Permalink
fix: renderBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
KaNaDaAT committed Mar 11, 2024
1 parent a2198a1 commit 5192810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/marks/line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5192810

Please sign in to comment.