Skip to content

Commit 75c0bfb

Browse files
committed
textureData updated to fix flipping property for webgl
1 parent d677adc commit 75c0bfb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/webgl/p5.Texture.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,10 @@ p5.Texture = class Texture {
126126
this.isSrcHTMLElement
127127
) {
128128
// if param is a video HTML element
129-
// UPDATED:
130129
if (this.src._ensureCanvas) {
131-
this.src._ensureCanvas()
130+
this.src._ensureCanvas();
132131
}
133132
textureData = this.src.canvas || this.src.elt;
134-
// End update
135133
} else if (this.isImageData) {
136134
textureData = this.src;
137135
}

0 commit comments

Comments
 (0)