From a0a6237825e218a83e658ef76008986b05359733 Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Tue, 21 Aug 2012 23:34:20 +0200 Subject: [PATCH] uterm: video: drm: check for EGL_KHR_surfaceless_context Mesa 8.1-devel/9.0-devel stopped exposing EGL_KHR_surfaceless_opengl because it never actually existed and started exposing EGL_KHR_surfaceless_context. Check that in addition to EGL_KHR_surfaceless_opengl. http://cgit.freedesktop.org/mesa/mesa/commit/?id=b50703aea55450e04bcd8154335774786e0f253b Signed-off-by: Marcin Slusarz Signed-off-by: David Herrmann --- src/uterm_video_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uterm_video_drm.c b/src/uterm_video_drm.c index 179fb3a..74ac7fd 100644 --- a/src/uterm_video_drm.c +++ b/src/uterm_video_drm.c @@ -969,7 +969,7 @@ static int video_init(struct uterm_video *video, const char *node) } ext = eglQueryString(drm->disp, EGL_EXTENSIONS); - if (!ext || !strstr(ext, "EGL_KHR_surfaceless_opengl")) { + if (!ext || (!strstr(ext, "EGL_KHR_surfaceless_opengl") && !strstr(ext, "EGL_KHR_surfaceless_context"))) { log_err("surfaceless opengl not supported"); ret = -EFAULT; goto err_disp;