-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
Description
Increasing access
Using p5._friendlyError() ensures framebuffer configuration warnings are displayed consistently and can be suppressed via p5.disableFriendlyErrors.
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
Feature enhancement details
src/webgl/p5.Framebuffer.js uses 11 console.warn calls instead of p5._friendlyError():
- Line 185: Antialiasing unsupported in WebGL 1
- Lines 199-203: Missing width/height dimensions
- Line 212: Stencil without depth buffer
- Lines 487-490: Depth texture unavailable
- Lines 499-502: FLOAT depth format in WebGL 1
- Lines 511-515: Unknown framebuffer format
- Lines 522-525: Unknown depth format
- Lines 531-534: FLOAT textures unsupported
- Lines 542-545: FLOAT depth textures unsupported
- Lines 549-552: HALF_FLOAT textures unsupported
- Lines 560-563: RGB with FLOAT/HALF_FLOAT
I have a PR ready.
Reactions are currently unavailable