egl_init: Bail out when the extension GL_KHR_create_context is not available

Functionality of the extension is used to create the context.

Closes: #37

Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Gert Wollny 6 years ago committed by Jakob Bornecrantz
parent d85c54f60d
commit dc0deb61f5
  1. 6
      src/virgl_egl_context.c

@ -219,6 +219,12 @@ struct virgl_egl *virgl_egl_init(int fd, bool surfaceless, bool gles)
/* require surfaceless context */
if (!virgl_egl_has_extension_in_string(extension_list, "EGL_KHR_surfaceless_context"))
goto fail;
}
if (!virgl_egl_has_extension_in_string(extension_list, "EGL_KHR_create_context")) {
fprintf(stderr, "failed to find EGL_KHR_create_context extensions\n");
goto fail;
}
d->have_mesa_drm_image = false;
d->have_mesa_dma_buf_img_export = false;

Loading…
Cancel
Save