mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[client] egl: detect if egl is even available
This commit is contained in:
parent
bbcaaccdcc
commit
806ff934b2
@ -158,6 +158,10 @@ void egl_setup()
|
|||||||
|
|
||||||
bool egl_create(void ** opaque, const LG_RendererParams params)
|
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
|
// create our local storage
|
||||||
*opaque = malloc(sizeof(struct Inst));
|
*opaque = malloc(sizeof(struct Inst));
|
||||||
if (!*opaque)
|
if (!*opaque)
|
||||||
|
Loading…
Reference in New Issue
Block a user