mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 01:58:25 +00:00
[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:
parent
df0397b10b
commit
628bdab21b
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user