mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-09 08:58:06 +00:00
[client] overlay: call igEnd before return
This commit is contained in:
@@ -56,8 +56,8 @@ static int fps_render(void * udata, bool interactive, struct Rect * windowRects,
|
|||||||
|
|
||||||
if (maxRects == 0)
|
if (maxRects == 0)
|
||||||
{
|
{
|
||||||
return -1;
|
|
||||||
igEnd();
|
igEnd();
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ImVec2 size;
|
ImVec2 size;
|
||||||
@@ -68,6 +68,7 @@ static int fps_render(void * udata, bool interactive, struct Rect * windowRects,
|
|||||||
windowRects[0].w = size.x;
|
windowRects[0].w = size.x;
|
||||||
windowRects[0].h = size.y;
|
windowRects[0].h = size.y;
|
||||||
igEnd();
|
igEnd();
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user