Skip to content

Fix TRIANGLE_FAN immediate mode support#8974

Merged
davepagurek merged 1 commit into
mainfrom
fix/triangle-fan
Jul 7, 2026
Merged

Fix TRIANGLE_FAN immediate mode support#8974
davepagurek merged 1 commit into
mainfrom
fix/triangle-fan

Conversation

@davepagurek

@davepagurek davepagurek commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Resolves #8972

Changes

In the refactor that added WebGPU mode, TRIANGLE_FAN mode got lost -- WebGPU does not natively support it, so I initially took it out, but forgot to add it back in.

This adds it back, natively in WebGL, and by converting to TRIANGLES mode in WebGPU, and adds tests so it can't accidentally get lost again!

Live: https://editor.p5js.org/davepagurek/sketches/4i9LjRxPh

PR Checklist

@p5-bot

p5-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown

Continuous Release

CDN link

Published Packages

Commit hash: b2b0723

Previous deployments

This is an automated message.

@davepagurek davepagurek merged commit 60ca87d into main Jul 7, 2026
8 checks passed
@davepagurek davepagurek deleted the fix/triangle-fan branch July 7, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[p5.js 2.0+ Bug Report]: Fill interpolation in TRIANGLE_FAN broke between 2.1.2 and 2.2.0

1 participant