pub fn check_gl_error(gl: &GL) -> bool
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);