mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-08 21:33:57 +00:00
[client] overlay: call igEnd before return
This commit is contained in:
parent
3b6ad957e3
commit
eb5c588af9
1 changed files with 2 additions and 1 deletions
|
@ -56,8 +56,8 @@ static int fps_render(void * udata, bool interactive, struct Rect * windowRects,
|
|||
|
||||
if (maxRects == 0)
|
||||
{
|
||||
return -1;
|
||||
igEnd();
|
||||
return -1;
|
||||
}
|
||||
|
||||
ImVec2 size;
|
||||
|
@ -68,6 +68,7 @@ static int fps_render(void * udata, bool interactive, struct Rect * windowRects,
|
|||
windowRects[0].w = size.x;
|
||||
windowRects[0].h = size.y;
|
||||
igEnd();
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue