wg_engine: fix bug introduced in 07e73a9

Fixed loop condition.
This commit is contained in:
Mira Grudzinska 2025-01-20 01:11:03 +01:00 committed by Hermet Park
parent 868a085262
commit 5752e75ff9

View file

@ -671,7 +671,7 @@ void WgCompositor::renderClipPath(WgContext& context, WgRenderDataPaint* paint)
wgpuRenderPassEncoderSetPipeline(renderPassEncoder, pipelines.copy_stencil_to_depth);
renderData0->meshDataBBox.drawFan(context, renderPassEncoder);
// merge clip pathes with AND logic
for (auto p = paint->clips.begin() + 1; paint->clips.end(); ++p) {
for (auto p = paint->clips.begin() + 1; p < paint->clips.end(); ++p) {
// get render data
WgRenderDataShape* renderData = (WgRenderDataShape*)(*p);
// markup stencil