Skip to content

Commit

Permalink
Set scissor box before blit
Browse files Browse the repository at this point in the history
  • Loading branch information
asny committed Mar 22, 2024
1 parent 4c7c92a commit 21638a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/render_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ impl<'a> RenderTarget<'a> {
} else {
unreachable!()
};
self.context
.set_scissor(ScissorBox::new_at_origo(target.width, target.height));
unsafe {
self.context
.bind_framebuffer(crate::context::READ_FRAMEBUFFER, self.id);
Expand Down

0 comments on commit 21638a2

Please sign in to comment.