pex-context
pex-context copied to clipboard
Use webgl-debug in debug mode
Using https://www.npmjs.com/package/webgl-debug would allow use to catch invalid enums and other gl errors.
Is there any advantage over the current checkError()?
Yes it checks for invalid enums and parameters of function calls. So you can catch error when it happens not at some point in the future or end of frame.