We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f17097 commit d357542Copy full SHA for d357542
p5.Framebuffer.js
@@ -374,7 +374,7 @@ class Framebuffer {
374
// TODO: use this in WebGL 1
375
gl.renderbufferStorage(
376
gl.RENDERBUFFER,
377
- gl.getParameter(gl.MAX_SAMPLES),
+ Math.min(4, gl.getParameter(gl.MAX_SAMPLES)),
378
this.glInternalRenderbufferFormat(hasAlpha),
379
this.width * this.density,
380
this.height * this.density,
@@ -386,7 +386,7 @@ class Framebuffer {
386
if (this._renderer.hasWebGL2) {
387
gl.renderbufferStorageMultisample(
388
389
390
this.glDepthInternalRenderbufferFormat(),
391
392
0 commit comments