mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:52:57 +00:00
[client] overlay: prevent possible divide by zero
This commit is contained in:
parent
0a9784d09d
commit
a0f5907cb6
1 changed files with 6 additions and 0 deletions
|
@ -143,6 +143,12 @@ static int graphs_render(void * udata, bool interactive,
|
|||
++graphCount;
|
||||
}
|
||||
|
||||
if (!graphCount)
|
||||
{
|
||||
ll_unlock(gs.graphs);
|
||||
return 0;
|
||||
}
|
||||
|
||||
ImVec2 pos = {0.0f, 0.0f};
|
||||
igSetNextWindowBgAlpha(0.4f);
|
||||
igSetNextWindowPos(pos, ImGuiCond_FirstUseEver, pos);
|
||||
|
|
Loading…
Reference in a new issue