[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 authored and Geoffrey McRae committed 2021-07-23 15:54:18 +10:00
1 parent df0397b10b
commit 628bdab21b
2 files changed
-12

No files matched your search

-6
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.ups, memory_order_relaxed));
if (maxRects == 0)
{
igEnd();
return -1;
}
ImVec2 size;
igGetWindowPos(&pos);
igGetWindowSize(&size);
-6
View File
@@ -138,12 +138,6 @@ static int graphs_render(void * udata, bool interactive,
sizeof(float));
};
if (maxRects == 0)
{
igEnd();
return -1;
}
ImVec2 size;
igGetWindowPos(&pos);
igGetWindowSize(&size);