egl/dri2: Log a warning if no platforms are enabled.
authorMatt Turner <mattst88@gmail.com>
Thu, 4 Dec 2014 00:32:39 +0000 (16:32 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 4 Dec 2014 23:13:51 +0000 (15:13 -0800)
If you hit this, you didn't compile with --with-egl-platforms=...

Recompile with something like --with-egl-platforms=x11,drm and make
clean and make again.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/egl/drivers/dri2/egl_dri2.c

index d795a2fbdf3221b21549cef7907dce3cda2526b6..2a6811ce3f5c38f7473985d4c61688d6c19da5c5 100644 (file)
@@ -659,6 +659,7 @@ dri2_initialize(_EGLDriver *drv, _EGLDisplay *disp)
 #endif
 
    default:
+      _eglLog(_EGL_WARNING, "No EGL platform enabled.");
       return EGL_FALSE;
    }
 }