GS/Vulkan: Saturate ImGui scissor to zero

This commit is contained in:
Stenzek 2023-04-15 15:11:22 +10:00 committed by refractionpcsx2
parent 20ab5ed0fa
commit e68aaf6540
1 changed files with 1 additions and 1 deletions

View File

@ -2361,7 +2361,7 @@ void GSDeviceVK::RenderImGui()
if ((clip.zwzw() <= clip.xyxy()).mask() != 0) if ((clip.zwzw() <= clip.xyxy()).mask() != 0)
continue; continue;
SetScissor(GSVector4i(clip)); SetScissor(GSVector4i(clip).max_i32(GSVector4i::zero()));
// Since we don't have the GSTexture... // Since we don't have the GSTexture...
Vulkan::Texture* tex = static_cast<Vulkan::Texture*>(pcmd->GetTexID()); Vulkan::Texture* tex = static_cast<Vulkan::Texture*>(pcmd->GetTexID());