mirror of https://github.com/PCSX2/pcsx2.git
GS:MTL: Don't dispatch 0-element imgui draws
Metal validation doesn't like them
This commit is contained in:
parent
bf34eb32ed
commit
96a43ca254
|
@ -2407,6 +2407,8 @@ void GSDeviceMTL::RenderImGui(ImDrawData* data)
|
|||
{
|
||||
if (cmd.UserCallback)
|
||||
[NSException raise:@"Unimplemented" format:@"UserCallback not implemented"];
|
||||
if (!cmd.ElemCount)
|
||||
continue;
|
||||
|
||||
simd::float4 clip_rect = (ToSimd(cmd.ClipRect) - clip_off.xyxy) * clip_scale.xyxy;
|
||||
simd::float2 clip_min = clip_rect.xy;
|
||||
|
|
Loading…
Reference in New Issue