usage
var canvas = var fragmentShader = 'my valid fs'var vertextShader = 'my valid vs' // returns either null(if an error occurs) or gl-context with an installed program as a property (gl.program)var gl = //handling error returnsif!gl return else // magic :3
errors
if any errors occur during shader compilation or program linkage:
-
an error report will be logged to your console
-
getGLprog function will return null