Comment Comment by ridiculous_fish Question about code like this: fn render_reflection_fbo( &mut self, gl: &WebGlRenderingContext, state: &State, assets: &Assets, ) { gl.bind_framebuffer(...); gl.viewport(...); gl.clear_color(...); gl.clear(...); Setting the viewport and clear color sure look to be mutating, but they are being called on a shared reference (&WebGlRenderingContext).Why is it designed this way? Is this design considered sound, or is it a hack? parent ridiculous_fish 7 years ago
Why is it designed this way? Is this design considered sound, or is it a hack?