From dc3f7f1ab45e4826b3a477b6fe27846450fd33e5 Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Tue, 26 Oct 2021 20:07:13 +0530 Subject: [PATCH] Fix Incorrect Scissor Extent 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. --- app/src/main/cpp/skyline/gpu/interconnect/command_executor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/command_executor.cpp b/app/src/main/cpp/skyline/gpu/interconnect/command_executor.cpp index bbff096f..b7e18fa5 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/command_executor.cpp +++ b/app/src/main/cpp/skyline/gpu/interconnect/command_executor.cpp @@ -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, });