Skip to content

Commit

Permalink
fix: the mask buffer is not updated in time (#2559)
Browse files Browse the repository at this point in the history
  • Loading branch information
cptbtptpbcptdtptp authored Feb 14, 2025
1 parent 5242263 commit c3febe8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/RenderPipeline/RenderQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,12 @@ export class RenderQueue {
const engine = camera.engine;
camera.scene._maskManager.buildMaskRenderElement(master, incrementMaskQueue, decrementMaskQueue);

const primitiveChunkManagerMask = engine._batcherManager.primitiveChunkManagerMask;
incrementMaskQueue._batch(engine._batcherManager);
primitiveChunkManagerMask.uploadBuffer();
incrementMaskQueue.render(context, pipelineStageTagValue, RenderQueueMaskType.Increment);
decrementMaskQueue._batch(engine._batcherManager);
primitiveChunkManagerMask.uploadBuffer();
decrementMaskQueue.render(context, pipelineStageTagValue, RenderQueueMaskType.Decrement);
}
}
Expand Down

0 comments on commit c3febe8

Please sign in to comment.