Skip to content

updatePixels() can't be called in WEBGL Mode #5155

Closed
@aferriss

Description

@aferriss

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:

When using webGL mode, I'm not able to call updatePixels(). An error is given that updatePixels isn't a method on the current renderer. This applies to instances created with createGraphics in webGL mode as well.

Here's a sample sketch showing the issue.
https://editor.p5js.org/aferriss/sketches/LlY7q2OLE

  • p5.js version: 1.3.1
  • Web browser and version: Chrome
  • Operating System: Max OSX
  • Steps to reproduce this:
  1. Create a sketch in webgl mode createCanvas(400, 400, WEBGL)
  2. Load some pixels and do some pixel array manipualation
  3. Call updatePixels()

Metadata

Metadata

Assignees

Type

No type

Projects

Status

DONE! 🎉

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions