summaryrefslogtreecommitdiffstats
path: root/include/GL/internal/dri_interface.h
diff options
context:
space:
mode:
authorJuan Zhao <[email protected]>2011-01-09 12:03:02 -0500
committerKristian Høgsberg <[email protected]>2011-01-09 14:55:16 -0500
commite59fa4c46c8857f2e04447777dd197464c95b2cb (patch)
treedc08db1f93c23b4600f2071b7ddc985910a12052 /include/GL/internal/dri_interface.h
parentfb9c6e681f91c986b7cbe2d6e9f6baceda00c415 (diff)
dri2: release texture image.
Add release function for texture_from_pixmap extension. Some platform need to release texture image for texture_from_pixmap extension, add this interface for those platforms.
Diffstat (limited to 'include/GL/internal/dri_interface.h')
-rw-r--r--include/GL/internal/dri_interface.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 9ee039bd90b..39aa68bc8ca 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -251,6 +251,15 @@ struct __DRItexBufferExtensionRec {
GLint target,
GLint format,
__DRIdrawable *pDraw);
+ /**
+ * Method to release texture buffer in case some special platform
+ * need this.
+ *
+ * For GLX_EXT_texture_from_pixmap with AIGLX.
+ */
+ void (*releaseTexBuffer)(__DRIcontext *pDRICtx,
+ GLint target,
+ __DRIdrawable *pDraw);
};
/**