MCPcopy Index your code
hub / github.com/processing/p5.js / _shouldDeferUpload

Method _shouldDeferUpload

src/webgl/p5.Texture.js:168–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166 }
167
168 _shouldDeferUpload() {
169 return (
170 this.width === 0 ||
171 this.height === 0 ||
172 (this.isSrcMediaElement && !this.src.loadedmetadata)
173 );
174 }
175
176 /**
177 * Checks if the source data for this texture has changed (if it's

Callers 1

initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected