diff options
author | Kristian Høgsberg <[email protected]> | 2007-05-16 14:10:29 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2007-10-11 11:09:57 -0400 |
commit | 78a6aa57a0155d72280dd91c05513c847bf76f3b (patch) | |
tree | f007653457bdcff728af99fda719b574c20a2575 /src/glx/x11/glxext.c | |
parent | efaf90b03e8b69e04909bce071f8ef6b65cc0e9d (diff) |
Move GLX_MESA_allocate_memory related functions to new extension mechanism.
Diffstat (limited to 'src/glx/x11/glxext.c')
-rw-r--r-- | src/glx/x11/glxext.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index 1563ca63943..8275b4b9e07 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -1039,6 +1039,17 @@ static void queryExtensions(__GLXscreenConfigs *psc) } #endif +#ifdef __DRI_ALLOCATE + if (strcmp(extensions[i]->name, __DRI_ALLOCATE) == 0) { + psc->allocate = (__DRIallocateExtension *) extensions[i]; + __glXScrEnableExtension(&psc->driScreen, + "GLX_SGI_swap_control"); + __glXScrEnableExtension(&psc->driScreen, + "GLX_MESA_swap_control"); + + } +#endif + /* Ignore unknown extensions */ } } |