From: Benjamin Franzke Date: Wed, 9 Mar 2011 19:47:42 +0000 (+0100) Subject: dri: Add dupImage to DRIimageExtension X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5fbbd4c19fca6486050990893e8e8c1835ba0b4d;p=mesa.git dri: Add dupImage to DRIimageExtension --- diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index f022b44b260..4fe9e943b55 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interface.h @@ -849,6 +849,11 @@ struct __DRIimageExtensionRec { void *loaderPrivate); GLboolean (*queryImage)(__DRIimage *image, int attrib, int *value); + + /** + * The new __DRIimage will share the content with the old one, see dup(2). + */ + __DRIimage *(*dupImage)(__DRIimage *image, void *loaderPrivate); };