summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHaitao Feng <haitao.feng@intel.com>2011-01-30 16:03:35 +0800
committerKristian Høgsberg <krh@bitplanet.net>2011-02-03 11:59:30 -0500
commitb43a147128a1144a5fe4afcda412ccaba0c0793b (patch)
treeba28e121733aa65949d3fa605813e89f015f9ee6 /include
parent610c24b19d21f3d147fde4d96a3afaa107670f1e (diff)
swrast: add an interface createNewContextForAPI
This new interface could set up context for OpenGL, OpenGL ES1 and OpenGL ES2. It will be used by egl_dri2 driver. Signed-off-by: Haitao Feng <haitao.feng@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/GL/internal/dri_interface.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 42d6968ce2..0351526773 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -657,7 +657,7 @@ struct __DRIlegacyExtensionRec {
* conjunction with the core extension.
*/
#define __DRI_SWRAST "DRI_SWRast"
-#define __DRI_SWRAST_VERSION 1
+#define __DRI_SWRAST_VERSION 2
struct __DRIswrastExtensionRec {
__DRIextension base;
@@ -670,6 +670,13 @@ struct __DRIswrastExtensionRec {
__DRIdrawable *(*createNewDrawable)(__DRIscreen *screen,
const __DRIconfig *config,
void *loaderPrivate);
+
+ /* Since version 2 */
+ __DRIcontext *(*createNewContextForAPI)(__DRIscreen *screen,
+ int api,
+ const __DRIconfig *config,
+ __DRIcontext *shared,
+ void *data);
};
/**