summaryrefslogtreecommitdiffstats
path: root/src/glx/dri_common_interop.c
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-04-21 17:29:16 +0100
committerEmil Velikov <[email protected]>2016-05-24 23:03:00 +0100
commite384d75b120ce60954c545e8c6edbe98fd01bea7 (patch)
tree91f111db322fbfcb97ce308e0276558a507268e6 /src/glx/dri_common_interop.c
parent0e983276b96eee5aa1dd091888bc81e36169a8f1 (diff)
mesa_glinterop: make GL interop version field bidirectional
This allows clear and easy communication between the two. Caller: Requesting information (struct vN) Callee: I know how to deal with older version (vN-1) only. Here is your data and the version I support. Caller: Older version ? Sure I'll cap all access to the fields provided by the older version (vN-1) Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Tested-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/glx/dri_common_interop.c')
-rw-r--r--src/glx/dri_common_interop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/dri_common_interop.c b/src/glx/dri_common_interop.c
index 4733f3caab3..215aac46765 100644
--- a/src/glx/dri_common_interop.c
+++ b/src/glx/dri_common_interop.c
@@ -47,7 +47,7 @@ dri2_interop_query_device_info(struct glx_context *ctx,
_X_HIDDEN int
dri2_interop_export_object(struct glx_context *ctx,
- const mesa_glinterop_export_in *in,
+ mesa_glinterop_export_in *in,
mesa_glinterop_export_out *out)
{
struct dri2_screen *psc = (struct dri2_screen*)ctx->psc;
@@ -76,7 +76,7 @@ dri3_interop_query_device_info(struct glx_context *ctx,
_X_HIDDEN int
dri3_interop_export_object(struct glx_context *ctx,
- const mesa_glinterop_export_in *in,
+ mesa_glinterop_export_in *in,
mesa_glinterop_export_out *out)
{
struct dri3_screen *psc = (struct dri3_screen*)ctx->psc;