[client] allow renderers to pass back if they need an OpenGL context

This commit is contained in:
Geoffrey McRae
2021-01-27 19:38:34 +11:00
parent cc521eab90
commit 4dfe4b8e2b
5 changed files with 20 additions and 11 deletions

View File

@@ -162,7 +162,7 @@ void egl_setup(void)
option_register(egl_options);
}
bool egl_create(void ** opaque, const LG_RendererParams params)
bool egl_create(void ** opaque, const LG_RendererParams params, bool * needsOpenGL)
{
// check if EGL is even available
if (!eglQueryString(EGL_NO_DISPLAY, EGL_VERSION))
@@ -198,6 +198,7 @@ bool egl_create(void ** opaque, const LG_RendererParams params)
return false;
}
*needsOpenGL = false;
return true;
}