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 <olvaffe@gmail.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Chia-I Wu 4 years ago
parent afc2775a25
commit 163f4f120a
  1. 4
      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)

Loading…
Cancel
Save