mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Fix viewport overlay when using -ve viewport height on KHR_maintenance1
This commit is contained in:
@@ -972,8 +972,14 @@ ResourceId VulkanReplay::RenderOverlay(ResourceId texid, CompType typeHint, Floa
|
||||
|
||||
if(m_pDriver->m_ExtensionsEnabled[VkCheckExt_AMD_neg_viewport] ||
|
||||
m_pDriver->m_ExtensionsEnabled[VkCheckExt_KHR_maintenance1])
|
||||
{
|
||||
ubo->RectSize.y = fabs(viewport.height);
|
||||
|
||||
// VK_KHR_maintenance1 requires the position to be adjusted as well
|
||||
if(m_pDriver->m_ExtensionsEnabled[VkCheckExt_KHR_maintenance1] && viewport.height < 0.0f)
|
||||
ubo->RectPosition.y += viewport.height;
|
||||
}
|
||||
|
||||
m_Overlay.m_CheckerUBO.Unmap();
|
||||
|
||||
vt->CmdBindPipeline(Unwrap(cmd), VK_PIPELINE_BIND_POINT_GRAPHICS,
|
||||
|
||||
Reference in New Issue
Block a user