diff options
author | Marek Olšák <[email protected]> | 2016-03-03 18:43:53 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-04-20 12:18:47 +0200 |
commit | 37d3a26bd620703f63673101f4093d13fb97ddef (patch) | |
tree | 6f7dd03d13b7c6153a963abd47640e9b41aa3de7 /src/glx/dri3_glx.c | |
parent | b6eda708431b91a3b568da0efac845c08cb36796 (diff) |
glx: implement GLX part of interop interface (v2)
v2: - use const
Diffstat (limited to 'src/glx/dri3_glx.c')
-rw-r--r-- | src/glx/dri3_glx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index 6054ffc3dc1..6729357bb3c 100644 --- a/src/glx/dri3_glx.c +++ b/src/glx/dri3_glx.c @@ -638,6 +638,8 @@ static const struct glx_context_vtable dri3_context_vtable = { .bind_tex_image = dri3_bind_tex_image, .release_tex_image = dri3_release_tex_image, .get_proc_address = NULL, + .interop_query_device_info = dri3_interop_query_device_info, + .interop_export_object = dri3_interop_export_object }; /** dri3_bind_extensions @@ -704,6 +706,9 @@ dri3_bind_extensions(struct dri3_screen *psc, struct glx_display * priv, psc->rendererQuery = (__DRI2rendererQueryExtension *) extensions[i]; __glXEnableDirectExtension(&psc->base, "GLX_MESA_query_renderer"); } + + if (strcmp(extensions[i]->name, __DRI2_INTEROP) == 0) + psc->interop = (__DRI2interopExtension*)extensions[i]; } } |