Skip to content

Commit

Permalink
vulkan: shift viewport y by height
Browse files Browse the repository at this point in the history
  • Loading branch information
EriKWDev committed Dec 27, 2024
1 parent 1b51f28 commit 5cfa3b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blade-graphics/src/vulkan/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ impl crate::Viewport {
fn to_vk(&self) -> vk::Viewport {
vk::Viewport {
x: self.x,
y: self.y,
y: self.y + self.h, // shift since always flipped y and vulkan >= 1.1
width: self.w,
height: -self.h, // flip Y
min_depth: self.depth.start,
Expand Down

0 comments on commit 5cfa3b4

Please sign in to comment.