checkError method
As allocating and freeing native memory is expensive and we need regularly buffers to receive values from FFI function we create a small set here that will be reused constantly
Implementation
void checkError([String message = '']) {
final glError = gl.glGetError();
if (glError != WebGL.NO_ERROR) {
final openGLException = OpenGLException('RenderingContext.$message', glError);
// assert(() {
angleConsole.warning(openGLException.toString());
// return true;
// }());
// throw openGLException;
}
}