Skip to content

Offscreen WebGL Rendering Throws Error #5000

Closed
@choxi

Description

@choxi

Most appropriate sub-area of p5.js?

  • Accessibility (Web Accessibility)
  • Build tools and processes
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Friendly error system
  • Image
  • IO (Input/Output)
  • Localization
  • Math
  • Unit Testing
  • Typography
  • Utilities
  • WebGL
  • Other (specify if possible)

Details about the bug:

  • p5.js version: 1.2.0
  • Web browser and version: Safari 14.0.2
  • Operating System: macOS
  • Steps to reproduce this:

Here's a reproduction of the error: https://editor.p5js.org/choxi/sketches/Fu0DWOT1R

If you try to render offscreen with WEBGL, it throws an error:

function setup() {
  createCanvas(400, 400, WEBGL);
  buffer = createGraphics(400, 400, WEBGL)
  buffer.fill(0, 255, 255)
  buffer.rect(-200, -200, 400, 400)
  image(buffer, -200, -200)
}

This throws the error: undefined is not an object (evaluating 'this._accessibleOutputs.grid'). It seems to work on version 1.1.9 but is broken on 1.2.0.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions