https://www.shadertoy.com/view/flSBDV does not seem to work on Safari but works well in Chrome.
Is this actually a WebGL issue? I see that there is an exception raised from ctx.drawImage().
This should be fixed in macOS 12.5 beta 1. *** This bug has been marked as a duplicate of bug 238174 ***
The root cause is that the shadertoy ui tries to draw a 0,0 image when using 3d textures in shadertoy ui. This trigger an exception, a bug in Safari.