canvas::webgl_thread

Function clamp_viewport

Source
fn clamp_viewport(gl: &Context, size: Size2D<u32>) -> Size2D<u32>