From b43a147128a1144a5fe4afcda412ccaba0c0793b Mon Sep 17 00:00:00 2001 From: Haitao Feng Date: Sun, 30 Jan 2011 16:03:35 +0800 Subject: 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 --- include/GL/internal/dri_interface.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/GL/internal') 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); }; /** -- cgit v1.2.3