Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed def errors
  • Loading branch information
Forchapeatl authored Sep 3, 2024
commit bd939ff8ef6e9235a9b7c958264dc0a760df8de5
1 change: 1 addition & 0 deletions src/webgl/p5.Shader.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ p5.Shader = class {

unbindTextures() {
for (const uniform of this.samplers) {
const textureUnit = gl.TEXTURE0 + uniform.samplerIndex;
if (!this.previousBindings.has(textureUnit)){
this.setUniform(uniform.name, this._renderer._getEmptyTexture());
}
Expand Down