WebGLRenderingContext.getError() method of the WebGL API returns error information.
||No error has been recorded. The value of this constant is 0.|
||An unacceptable value has been specified for an enumerated argument. The command is ignored and the error flag is set.|
||A numeric argument is out of range. The command is ignored and the error flag is set.|
||The specified command is not allowed for the current state. The command is ignored and the error flag is set.|
||The currently bound framebuffer is not framebuffer complete when trying to render to or to read from it.|
||Not enough memory is left to execute the command.|
||If the WebGL context is lost, this error is returned on the first call to
gl.getError(); // gl.NO_ERROR (0) gl.enable(gl.FOOBAR); gl.getError(); // gl.INVALID_ENUM;
The definition of 'getError' in that specification.
|OpenGL ES 2.0
The definition of 'glGetError' in that specification.
|Standard||Man page of the OpenGL API.|
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.