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 d677adc commit 75c0bfbCopy full SHA for 75c0bfb
src/webgl/p5.Texture.js
@@ -126,12 +126,10 @@ p5.Texture = class Texture {
126
this.isSrcHTMLElement
127
) {
128
// if param is a video HTML element
129
- // UPDATED:
130
if (this.src._ensureCanvas) {
131
- this.src._ensureCanvas()
+ this.src._ensureCanvas();
132
}
133
textureData = this.src.canvas || this.src.elt;
134
- // End update
135
} else if (this.isImageData) {
136
textureData = this.src;
137
0 commit comments