diff options
author | Dave Airlie <airlied@linux.ie> | 2008-07-13 19:00:46 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-07-13 19:00:46 +1000 |
commit | 4fab47b13c214dc79e0ae5d8001521029ce34231 (patch) | |
tree | 5cef140eea4f1956cda116809cf4af511a092896 /src/glx/x11/dri_common.c | |
parent | e81ba58bf4c20229677cdf89b5970b55cefb2199 (diff) |
glx/dri: only report DRI2 extensions when DRI2 is enabled.
Fixes bug 15477
Diffstat (limited to 'src/glx/x11/dri_common.c')
-rw-r--r-- | src/glx/x11/dri_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/x11/dri_common.c b/src/glx/x11/dri_common.c index b159d193a5..8175f46c54 100644 --- a/src/glx/x11/dri_common.c +++ b/src/glx/x11/dri_common.c @@ -329,7 +329,7 @@ driConvertConfigs(const __DRIcoreExtension *core, } _X_HIDDEN void -driBindExtensions(__GLXscreenConfigs *psc) +driBindExtensions(__GLXscreenConfigs *psc, int dri2) { const __DRIextension **extensions; int i; @@ -386,7 +386,7 @@ driBindExtensions(__GLXscreenConfigs *psc) #endif #ifdef __DRI_TEX_BUFFER - if (strcmp(extensions[i]->name, __DRI_TEX_BUFFER) == 0) { + if ((strcmp(extensions[i]->name, __DRI_TEX_BUFFER) == 0) && dri2) { psc->texBuffer = (__DRItexBufferExtension *) extensions[i]; __glXEnableDirectExtension(psc, "GLX_EXT_texture_from_pixmap"); } |