diff options
author | Ian Romanick <[email protected]> | 2011-11-30 12:16:19 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2011-12-23 08:49:53 -0800 |
commit | 1ab545494a6750527cb8b945c286f23a6524826a (patch) | |
tree | bc6b09c9651a138f810e7778539e5c54350e5674 /src | |
parent | d18152028e1825c05c7de33acacee3336350a096 (diff) |
dri2: Add createContextAttribs entry point for DRI2 version 3
Signed-off-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 1640c14480d..a153d525d9c 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -454,14 +454,18 @@ const __DRIcoreExtension driCoreExtension = { /** DRI2 interface */ const __DRIdri2Extension driDRI2Extension = { - { __DRI_DRI2, __DRI_DRI2_VERSION }, + /* Force the version to 2 because the underlying drivers don't (can't!) + * support the extra requirements of CreateContextAttribs. + */ + { __DRI_DRI2, 2 }, dri2CreateNewScreen, dri2CreateNewDrawable, dri2CreateNewContext, dri2GetAPIMask, dri2CreateNewContextForAPI, dri2AllocateBuffer, - dri2ReleaseBuffer + dri2ReleaseBuffer, + NULL }; const __DRI2configQueryExtension dri2ConfigQueryExtension = { |