fix: replace raw console.log() with p5._friendlyError() in WebGL modules by MASTERsj01 · Pull Request #8652 · processing/p5.js
Resolves #8651
Changes:
Replace 20 raw console.log() calls with p5._friendlyError() across 6 WebGL module files, as discussed in the issue:
- ShapeBuilder.js (2): Tessellation callbacks — now include bug report encouragement
- p5.RendererGL.js (5): Instancing, setAttributes, and loadPixels errors
- p5.Camera.js (2): Perspective near/far plane warnings
- text.js (2): Font loading errors
- utils.js (2): Texture data validation
- 3d_primitives.js (7): Stroke limitation warnings on shapes
p5.Shader.inspectHooks() is intentionally left unchanged as it is a user-facing debug tool (per maintainer feedback).
Screenshots of the change:
Not applicable — no visual changes. Only error/warning output channel changed from console.log to FES.
PR Checklist
-
npm run lintpasses - Inline reference is included / updated
- Unit tests are included / updated