Skip to content

Commit

Permalink
for-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
perminder-17 committed Dec 11, 2024
1 parent 64adf22 commit 9755b1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/webgl/p5.Shader.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,13 +625,12 @@ class Shader {
'The shader being run is attached to a different context. Do you need to copy it to this context first with .copyToContext()?'
);
} else if (this._glProgram === 0) {
this._renderer = context._renderer.filterRenderer
? context._renderer.filterRenderer._renderer
: context._renderer;
this._renderer = context?._renderer?.filterRenderer?._renderer || context?._renderer;
this.init();
}
}


/**
* Queries the active attributes for this shader and loads
* their names and locations into the attributes array.
Expand Down

0 comments on commit 9755b1d

Please sign in to comment.