Skip to content

Commit

Permalink
Merge pull request #22 from mvlabat/fix-scissor-test
Browse files Browse the repository at this point in the history
Disable scissor test at the beginning of a render pass
  • Loading branch information
mrk-its authored Feb 6, 2021
2 parents dd2ec69 + 5f498c0 commit 637ca07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/webgl2_render_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ impl RenderContext for WebGL2RenderContext {
) {
let mut clear_mask = 0;
let gl = &self.device.get_context();
gl_call!(gl.disable(Gl::SCISSOR_TEST));

if let LoadOp::Clear(c) = pass_descriptor.color_attachments[0].ops.load {
gl_call!(gl.clear_color(c.r(), c.g(), c.b(), c.a()));
Expand Down

0 comments on commit 637ca07

Please sign in to comment.