summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Nguyen <brnguyen@nvidia.com>2013-11-06 15:37:19 -0800
committerbrnguyen <brnguyen@nvidia.com>2013-11-25 15:32:11 -0800
commitf00ee68857bec9727d896ae5585812aab3289b87 (patch)
tree49a8f28634732af7059e77d07268bb48b214776a /src
parenteaa0a711502c4a45622d868928e5a9923ee6be05 (diff)
Add glXGetProcAddressARB()
Some applications may elect to use the ARB entrypoint instead of glXGetProcAddress() itself. Signed-off-by: Brian Nguyen <brnguyen@nvidia.com>
Diffstat (limited to 'src')
-rw-r--r--src/GLX/libglx.c6
-rw-r--r--src/GLX/libglxnoopdefs.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/src/GLX/libglx.c b/src/GLX/libglx.c
index 011d572..99575d4 100644
--- a/src/GLX/libglx.c
+++ b/src/GLX/libglx.c
@@ -809,6 +809,7 @@ void cacheInitializeOnce(void)
LOCAL_FUNC_TABLE_ENTRY(glXGetFBConfigAttrib)
LOCAL_FUNC_TABLE_ENTRY(glXGetFBConfigs)
LOCAL_FUNC_TABLE_ENTRY(glXGetProcAddress)
+ LOCAL_FUNC_TABLE_ENTRY(glXGetProcAddressARB)
LOCAL_FUNC_TABLE_ENTRY(glXGetSelectedEvent)
LOCAL_FUNC_TABLE_ENTRY(glXGetVisualFromFBConfig)
LOCAL_FUNC_TABLE_ENTRY(glXIsDirect)
@@ -896,6 +897,11 @@ static void cacheProcAddress(const GLubyte *procName, __GLXextFuncPtr addr)
LKDHASH_UNLOCK(__glXPthreadFuncs, __glXProcAddressHash);
}
+PUBLIC __GLXextFuncPtr glXGetProcAddressARB(const GLubyte *procName)
+{
+ return glXGetProcAddress(procName);
+}
+
PUBLIC __GLXextFuncPtr glXGetProcAddress(const GLubyte *procName)
{
__GLXextFuncPtr addr = NULL;
diff --git a/src/GLX/libglxnoopdefs.h b/src/GLX/libglxnoopdefs.h
index 5f5fe01..ab67740 100644
--- a/src/GLX/libglxnoopdefs.h
+++ b/src/GLX/libglxnoopdefs.h
@@ -271,6 +271,11 @@ GLXNOOP __GLXextFuncPtr NOOP_FUNC(GetProcAddress)(const GLubyte *procName)
return NULL;
}
+GLXNOOP __GLXextFuncPtr NOOP_FUNC(GetProcAddressARB)(const GLubyte *procName)
+{
+ return NULL;
+}
+
GLXNOOP Bool NOOP_FUNC(QueryExtension)(Display *dpy,
int *error_base,
int *event_base)