compositor-*: check for surfaceless_gles2 instead of surfaceless_opengl
All the compositors are using GLES2 so check for the appropriate surfaceless extension. Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
This commit is contained in:
parent
d3ef7be781
commit
ef7c8d9ddf
|
@ -344,8 +344,8 @@ init_egl(struct drm_compositor *ec, struct udev_device *device)
|
|||
}
|
||||
|
||||
extensions = eglQueryString(ec->base.display, EGL_EXTENSIONS);
|
||||
if (!strstr(extensions, "EGL_KHR_surfaceless_opengl")) {
|
||||
fprintf(stderr, "EGL_KHR_surfaceless_opengl not available\n");
|
||||
if (!strstr(extensions, "EGL_KHR_surfaceless_gles2")) {
|
||||
fprintf(stderr, "EGL_KHR_surfaceless_gles2 not available\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
@ -151,8 +151,8 @@ init_egl(struct wfd_compositor *ec)
|
|||
}
|
||||
|
||||
extensions = eglQueryString(ec->base.display, EGL_EXTENSIONS);
|
||||
if (!strstr(extensions, "EGL_KHR_surfaceless_opengl")) {
|
||||
fprintf(stderr, "EGL_KHR_surfaceless_opengl not available\n");
|
||||
if (!strstr(extensions, "EGL_KHR_surfaceless_gles2")) {
|
||||
fprintf(stderr, "EGL_KHR_surfaceless_gles2 not available\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
@ -129,8 +129,8 @@ wayland_compositor_init_egl(struct wayland_compositor *c)
|
|||
}
|
||||
|
||||
extensions = eglQueryString(c->base.display, EGL_EXTENSIONS);
|
||||
if (!strstr(extensions, "EGL_KHR_surfaceless_opengl")) {
|
||||
fprintf(stderr, "EGL_KHR_surfaceless_opengl not available\n");
|
||||
if (!strstr(extensions, "EGL_KHR_surfaceless_gles2")) {
|
||||
fprintf(stderr, "EGL_KHR_surfaceless_gles2 not available\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
@ -134,8 +134,8 @@ x11_compositor_init_egl(struct x11_compositor *c)
|
|||
}
|
||||
|
||||
extensions = eglQueryString(c->base.display, EGL_EXTENSIONS);
|
||||
if (!strstr(extensions, "EGL_KHR_surfaceless_opengl")) {
|
||||
fprintf(stderr, "EGL_KHR_surfaceless_opengl not available\n");
|
||||
if (!strstr(extensions, "EGL_KHR_surfaceless_gles2")) {
|
||||
fprintf(stderr, "EGL_KHR_surfaceless_gles2 not available\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue