Skip to content

Commit

Permalink
Fix Incorrect Scissor Extent
Browse files Browse the repository at this point in the history
The decomposition from `texture::Dimension` to `vk::Rect2D` was somehow implicit and completely incorrect resulting in wrong conversion with undefined values. It's now been fixed by explicitly setting `vk::Rect2D::extent` to `scissor` specifically.
  • Loading branch information
PixelyIon committed Oct 26, 2021
1 parent a60f238 commit dc3f7f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace skyline::gpu::interconnect {
.colorAttachment = 0,
.clearValue = value,
}, vk::ClearRect{
.rect = scissor,
.rect = vk::Rect2D{.extent = scissor},
.baseArrayLayer = 0,
.layerCount = 1,
});
Expand Down

0 comments on commit dc3f7f1

Please sign in to comment.