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 <marcin.slusarz@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
Marcin Slusarz 2012-08-21 23:34:20 +02:00 committed by David Herrmann
parent 6094ff1603
commit a0a6237825

View File

@ -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;