dri: Add dupImage to DRIimageExtension
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Wed, 9 Mar 2011 19:47:42 +0000 (20:47 +0100)
committerBenjamin Franzke <benjaminfranzke@googlemail.com>
Thu, 23 Jun 2011 19:07:17 +0000 (21:07 +0200)
include/GL/internal/dri_interface.h

index f022b44b26048fc5d86d668c995f524456c376b3..4fe9e943b55888220a1b83391f50813d858764a9 100644 (file)
@@ -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);
 };