From d033ff2478d7d16f01fe39787707df1b1f98048e Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Mon, 28 Mar 2022 20:14:42 +0100 Subject: [PATCH] Fix draws when no colour RTs and only depth is bound --- app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h b/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h index 8c070849..03f20f89 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h +++ b/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h @@ -2626,7 +2626,7 @@ namespace skyline::gpu::interconnect { cycle->AttachObject(fenceStorage); }, vk::Rect2D{ - .extent = activeColorRenderTargets.front()->texture->dimensions, + .extent = activeColorRenderTargets.empty() ? depthRenderTarget.guest.dimensions : activeColorRenderTargets.front()->texture->dimensions, }, {}, activeColorRenderTargets, depthRenderTargetView); }