Skip to content

Commit

Permalink
Apply patch from bevyengine#14287 to bevy 0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-hansen committed Jul 19, 2024
1 parent b231ebb commit 77753cb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/bevy_core_pipeline/src/upscaling/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@ impl ViewNode for UpscalingNode {
.command_encoder()
.begin_render_pass(&pass_descriptor);

if let Some(camera) = camera {
if let Some(viewport) = &camera.viewport {
let size = viewport.physical_size;
let position = viewport.physical_position;
render_pass.set_scissor_rect(
position.x,
position.y,
size.x,
size.y,
);
}
}

render_pass.set_pipeline(pipeline);
render_pass.set_bind_group(0, bind_group, &[]);
render_pass.draw(0..3, 0..1);
Expand Down

0 comments on commit 77753cb

Please sign in to comment.