diff options
author | Alan Hourihane <[email protected]> | 2008-06-12 00:11:54 +0100 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2008-06-12 00:11:54 +0100 |
commit | 6f7ed99b306990f284f9d57c0b66efaa7f2277e1 (patch) | |
tree | 23819c5863553573f6cf70de8e5ee127a875b63b /src/glx/x11/glxextensions.c | |
parent | 2161b0fafcdc16703162dd489d2ec1e7114cce4c (diff) |
revert the DRI2 commits
Diffstat (limited to 'src/glx/x11/glxextensions.c')
-rw-r--r-- | src/glx/x11/glxextensions.c | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/src/glx/x11/glxextensions.c b/src/glx/x11/glxextensions.c index e8437184722..1d99b61db08 100644 --- a/src/glx/x11/glxextensions.c +++ b/src/glx/x11/glxextensions.c @@ -356,16 +356,29 @@ __glXProcessServerString( const struct extension_info * ext, } } + +/** + * Enable a named GLX extension on a given screen. + * Drivers should not call this function directly. They should instead use + * \c glXGetProcAddress to obtain a pointer to the function. + * + * \param psc Pointer to GLX per-screen record. + * \param name Name of the extension to enable. + * + * \sa glXGetProcAddress + * + * \since Internal API version 20030813. + */ void -__glXEnableDirectExtension(__GLXscreenConfigs *psc, const char *name) +__glXScrEnableExtension( __GLXscreenConfigs *psc, const char * name ) { - __glXExtensionsCtr(); - __glXExtensionsCtrScreen(psc); - - set_glx_extension(known_glx_extensions, - name, strlen(name), GL_TRUE, psc->direct_support); + __glXExtensionsCtr(); + __glXExtensionsCtrScreen(psc); + set_glx_extension( known_glx_extensions, name, strlen( name ), GL_TRUE, + psc->direct_support ); } + /** * Initialize global extension support tables. */ |