[client] egl: detect if egl is even available

This commit is contained in:
Geoffrey McRae 2020-11-29 21:43:28 +11:00
parent bbcaaccdcc
commit 806ff934b2

View File

@ -158,6 +158,10 @@ void egl_setup()
bool egl_create(void ** opaque, const LG_RendererParams params)
{
// check if EGL is even available
if (!eglQueryString(EGL_NO_DISPLAY, EGL_VERSION))
return false;
// create our local storage
*opaque = malloc(sizeof(struct Inst));
if (!*opaque)