[client] overlay: remove space checking

Every overlay is now guaranteed to be able to write MAX_OVERLAY_RECTS rects,
and running out of space is now an error.
This commit is contained in:
Quantum 2021-07-22 05:56:24 -04:00 committed by Geoffrey McRae
parent df0397b10b
commit 628bdab21b
2 changed files with 0 additions and 12 deletions

View File

@ -54,12 +54,6 @@ static int fps_render(void * udata, bool interactive, struct Rect * windowRects,
atomic_load_explicit(&g_state.fps, memory_order_relaxed), atomic_load_explicit(&g_state.fps, memory_order_relaxed),
atomic_load_explicit(&g_state.ups, memory_order_relaxed)); atomic_load_explicit(&g_state.ups, memory_order_relaxed));
if (maxRects == 0)
{
igEnd();
return -1;
}
ImVec2 size; ImVec2 size;
igGetWindowPos(&pos); igGetWindowPos(&pos);
igGetWindowSize(&size); igGetWindowSize(&size);

View File

@ -138,12 +138,6 @@ static int graphs_render(void * udata, bool interactive,
sizeof(float)); sizeof(float));
}; };
if (maxRects == 0)
{
igEnd();
return -1;
}
ImVec2 size; ImVec2 size;
igGetWindowPos(&pos); igGetWindowPos(&pos);
igGetWindowSize(&size); igGetWindowSize(&size);