Function moon_engine::gl::check_gl_error
source · [−]Expand description
Check for, and print any WebGL errors if found.
Takes a reference to a WebGl2RenderingContext
and returns a bool
, indicating whether any errors were found.
Examples
use moon_engine::*;
let has_errors = gl::check_gl_error(&gl);