From 163f4f120aa9440adc72898a842479e18c908410 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 20 Jul 2020 16:50:09 -0700 Subject: [PATCH] vrend: fail EGLImage import at runtime We mainly want to get rid of HAVE_EPOXY_EGL_H. But technically, it is possible to import an EGLImage without EGL support. Signed-off-by: Chia-I Wu Reviewed-by: Gurchetan Singh --- src/virglrenderer.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/virglrenderer.c b/src/virglrenderer.c index f5c4253..a212c4b 100644 --- a/src/virglrenderer.c +++ b/src/virglrenderer.c @@ -89,11 +89,7 @@ int virgl_renderer_resource_create(struct virgl_renderer_resource_create_args *a int virgl_renderer_resource_import_eglimage(struct virgl_renderer_resource_create_args *args, void *image) { -#ifdef HAVE_EPOXY_EGL_H return virgl_renderer_resource_create_internal(args, NULL, 0, image); -#else - return EINVAL; -#endif } void virgl_renderer_resource_set_priv(uint32_t res_handle, void *priv)