sinisterchipmunk/jax — comment on commit 786aa671cd9a9000df7e895184bb6b3bb2e961cc
File: lib/assets/javascripts/jax/context.js line 184
By sinisterchipmunk:

Without this, Safari throws a 1280 error - INVALID_OPERATION. Erroneously, Jax reports it as part of the "viewport" call; in fact, It seems that the error is generated at some point prior to the "viewport" call. This error is generated every frame, so it's happening somewhere during the render sequence. It's also possible that the error is generated during the _update_ sequence, which happens separately.

I can't find any GL command that might be generating the error. Also, if it's not a browser bug, why does it only happen on Safari? Jax follows every call to every GL command with a checkError() call in development mode, so that should have turned something up in Firefox if it was a logical error.

For now, I've added this line as a workaround to the Safari issue. We can hope that one day, either Safari will be fixed, or the true issue will eventually make itself known.