[client] app: init/destroy imgui context on run/shutdown

This commit is contained in:
Geoffrey McRae
2021-07-08 14:05:42 +10:00
parent f08163fd72
commit bcffd70270
2 changed files with 15 additions and 13 deletions

View File

@@ -33,6 +33,8 @@
#include "spice/spice.h"
#include <lgmp/client.h>
#include "cimgui.h"
enum RunState
{
APP_STATE_RUNNING,
@@ -44,6 +46,8 @@ struct AppState
{
enum RunState state;
ImGuiIO * io;
struct LG_DisplayServerOps * ds;
bool dsInitialized;