diff options
author | Haitao Feng <[email protected]> | 2011-01-30 16:03:35 +0800 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2011-02-03 11:59:30 -0500 |
commit | b43a147128a1144a5fe4afcda412ccaba0c0793b (patch) | |
tree | ba28e121733aa65949d3fa605813e89f015f9ee6 /include/GL/internal | |
parent | 610c24b19d21f3d147fde4d96a3afaa107670f1e (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 <[email protected]>
Diffstat (limited to 'include/GL/internal')
-rw-r--r-- | include/GL/internal/dri_interface.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 42d6968ce29..03515267733 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); }; /** |