Skip to content

fix: replace console.log/warn with p5._friendlyError in RendererGL (fixes #8591)#8592

Open
MASTERsj01 wants to merge 1 commit intoprocessing:mainfrom
MASTERsj01:fix/renderergl-console-to-fes
Open

fix: replace console.log/warn with p5._friendlyError in RendererGL (fixes #8591)#8592
MASTERsj01 wants to merge 1 commit intoprocessing:mainfrom
MASTERsj01:fix/renderergl-console-to-fes

Conversation

@MASTERsj01
Copy link

Summary

Replaces 8 console.log/console.warn calls across p5.RendererGL.js and p5.RendererGL.Immediate.js with p5._friendlyError().

Resolves #8591

Changes

File Count Warnings
p5.RendererGL.js 6 setAttributes, dimension limits, blendMode, loadPixels, tesselation (2)
p5.RendererGL.Immediate.js 2 vertex texture, instancing

All messages now respect p5.disableFriendlyErrors.

Notes

  • All existing tests pass (1913 passing)
  • 2 files changed: 35 insertions, 31 deletions

- p5.RendererGL.js: Replace 6 console.log/warn calls with p5._friendlyError()
  (setAttributes, dimension limits, blendMode, loadPixels, tesselation)
- p5.RendererGL.Immediate.js: Replace 2 console.log/warn calls with
  p5._friendlyError() (vertex texture warning, instancing)
- All messages now respect p5.disableFriendlyErrors setting
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.RendererGL: replace console.log/warn with Friendly Error System (FES)

1 participant