[client] egl: fix building without EGL support

This commit is contained in:
Geoffrey McRae
2021-01-27 19:20:13 +11:00
parent cf3e816603
commit 8919d2718f
4 changed files with 38 additions and 26 deletions

View File

@@ -566,6 +566,7 @@ bool app_getProp(LG_DSProperty prop, void * ret)
return g_state.ds->getProp(prop, ret);
}
#ifdef ENABLE_EGL
EGLDisplay app_getEGLDisplay(void)
{
return g_state.ds->getEGLDisplay();
@@ -580,6 +581,7 @@ void app_eglSwapBuffers(EGLDisplay display, EGLSurface surface)
{
g_state.ds->eglSwapBuffers(display, surface);
}
#endif
void app_glSwapBuffers(void)
{

View File

@@ -633,7 +633,7 @@ static int lg_run(void)
}
assert(g_state.ds);
assert(IS_LG_DS_VALID(g_state.ds));
ASSERT_LG_DS_VALID(g_state.ds);
// init the subsystem
if (!g_state.ds->earlyInit())