diff options
author | Adam Jackson <ajax@redhat.com> | 2013-12-03 15:02:57 -0500 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-12-10 08:04:04 -0800 |
commit | 4fcdfeb7bc55d00d50d7f89788d9b929946ae3d9 (patch) | |
tree | ba29ecbc9df2924c82436667a004ba4e90ba322e /glx | |
parent | 47f00b3920be9d8df8b148263d744934f3a02cd4 (diff) |
dri2: wire up GetProcAddress
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxdri2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index a7ee4a3f5..b2f3d6ee8 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -55,7 +55,6 @@ typedef struct __GLXDRIscreen __GLXDRIscreen; typedef struct __GLXDRIcontext __GLXDRIcontext; typedef struct __GLXDRIdrawable __GLXDRIdrawable; - #ifdef __DRI2_ROBUSTNESS #define ALL_DRI_CTX_FLAGS (__DRI_CTX_FLAG_DEBUG \ | __DRI_CTX_FLAG_FORWARD_COMPATIBLE \ @@ -929,6 +928,9 @@ initializeExtensions(__GLXDRIscreen * screen) } } +/* white lie */ +extern glx_func_ptr glXGetProcAddressARB(const char *); + static __GLXscreen * __glXDRIscreenProbe(ScreenPtr pScreen) { @@ -1013,6 +1015,8 @@ __glXDRIscreenProbe(ScreenPtr pScreen) screen->leaveVT = pScrn->LeaveVT; pScrn->LeaveVT = glxDRILeaveVT; + __glXsetGetProcAddress(glXGetProcAddressARB); + LogMessage(X_INFO, "AIGLX: Loaded and initialized %s\n", driverName); return &screen->base; |