Skip to content

Commit

Permalink
Fix shader reload
Browse files Browse the repository at this point in the history
The attribute for the draw call is called drawFrame, not draw.
  • Loading branch information
TristanCacqueray committed Oct 18, 2024
1 parent f0ddb2d commit 1b8998a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/draw/shader.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ async function reloadShaderInstanceCode(instance, code) {
instance.program.delete()
instance.program = program
instance.uniforms = setupUniforms(instance.uniforms, program)
instance.draw = instance.app.createDrawCall(program, instance.arrays)
instance.drawFrame = instance.app.createDrawCall(program, instance.arrays)
})
}

Expand Down

0 comments on commit 1b8998a

Please sign in to comment.