Skip to content

Commit bc12e73

Browse files
committed
fix bad ref to context
1 parent b666366 commit bc12e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webgl/ShaderGenerator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ function shadergenerator(p5, fn) {
12691269
return node[name]
12701270
});
12711271
const replacement = nodeConstructors[node.type](components);
1272-
const line = ` ${node.temporaryVariable} = ${replacement.toGLSLBase(this.context)};`
1272+
const line = ` ${node.temporaryVariable} = ${replacement.toGLSLBase(this)};`
12731273
lines.push(line);
12741274
}
12751275
if (_emplaceAt) {

0 commit comments

Comments
 (0)