[client] ds: tell the display server if jitRender is requested

This commit is contained in:
Geoffrey McRae 2021-08-04 06:05:42 +10:00
parent 366ec16a63
commit 4e435e6199
2 changed files with 6 additions and 1 deletions

View File

@ -92,6 +92,10 @@ typedef struct LG_DSInitParams
// if true the renderer requires an OpenGL context
bool opengl;
// x11 needs to know if this is in use so we can decide to setup for
// presentation times
bool jitRender;
}
LG_DSInitParams;

View File

@ -958,7 +958,8 @@ static int lg_run(void)
.resizable = g_params.allowResize,
.borderless = g_params.borderless,
.maximize = g_params.maximize,
.opengl = needsOpenGL
.opengl = needsOpenGL,
.jitRender = g_params.jitRender
};
g_state.dsInitialized = g_state.ds->init(params);