Fix draws when no colour RTs and only depth is bound

This commit is contained in:
Billy Laws 2022-03-28 20:14:42 +01:00 committed by PixelyIon
parent d137051833
commit d033ff2478

View File

@ -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);
}