Skip to content

Commit

Permalink
fix Vulkan renderer scissor size (SecondHalfGames#184)
Browse files Browse the repository at this point in the history
fix vulkan scissor size
  • Loading branch information
Timbals authored and msparkles committed Sep 10, 2024
1 parent 3bc5d11 commit 71354f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/yakui-vulkan/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,10 @@ impl YakuiVulkan {
x: pos.x as _,
y: pos.y as _,
},
extent: resolution,
extent: vk::Extent2D {
width: size.x,
height: size.y,
},
}];
// If there's a clip, update the scissor
device.cmd_set_scissor(command_buffer, 0, &scissors);
Expand Down

0 comments on commit 71354f3

Please sign in to comment.