mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[client] overlay: prevent possible divide by zero
This commit is contained in:
parent
0a9784d09d
commit
a0f5907cb6
@ -143,6 +143,12 @@ static int graphs_render(void * udata, bool interactive,
|
|||||||
++graphCount;
|
++graphCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!graphCount)
|
||||||
|
{
|
||||||
|
ll_unlock(gs.graphs);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
ImVec2 pos = {0.0f, 0.0f};
|
ImVec2 pos = {0.0f, 0.0f};
|
||||||
igSetNextWindowBgAlpha(0.4f);
|
igSetNextWindowBgAlpha(0.4f);
|
||||||
igSetNextWindowPos(pos, ImGuiCond_FirstUseEver, pos);
|
igSetNextWindowPos(pos, ImGuiCond_FirstUseEver, pos);
|
||||||
|
Loading…
Reference in New Issue
Block a user