Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishab87 committed Dec 24, 2024
1 parent 2318e5b commit 4421a0c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/webgl/material.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,13 +558,7 @@ function material(p5, fn){

// Create the shader using createFilterShader
const loadedShader = this.createFilterShader(fragString, true);

if (this._renderer.GL) {
loadedShader.ensureCompiledOnContext(this._renderer);
} else {
loadedShader.ensureCompiledOnContext(this);
}


if (successCallback) {
successCallback(loadedShader);
}
Expand Down

0 comments on commit 4421a0c

Please sign in to comment.