if (pBindTexImageEXT == NULL)
return;
- (*pBindTexImageEXT)(dpy, drawable, buffer, attrib_list);
+ pBindTexImageEXT(dpy, drawable, buffer, attrib_list);
}
if (pChooseFBConfigSGIX == NULL)
return NULL;
- ret = (*pChooseFBConfigSGIX)(dpy, screen, attrib_list, nelements);
+ ret = pChooseFBConfigSGIX(dpy, screen, attrib_list, nelements);
if (AddFBConfigsMapping(dpy, ret, nelements, dd)) {
free(ret);
return NULL;
if (pCreateContextAttribsARB == NULL)
return None;
- ret = (*pCreateContextAttribsARB)(dpy, config, share_list, direct, attrib_list);
+ ret = pCreateContextAttribsARB(dpy, config, share_list, direct, attrib_list);
if (AddContextMapping(dpy, ret, dd)) {
/* XXX: Call glXDestroyContext which lives in libglvnd. If we're not
* allowed to call it from here, should we extend __glXDispatchTableIndices ?
if (pCreateContextWithConfigSGIX == NULL)
return None;
- ret = (*pCreateContextWithConfigSGIX)(dpy, config, render_type, share_list, direct);
+ ret = pCreateContextWithConfigSGIX(dpy, config, render_type, share_list, direct);
if (AddContextMapping(dpy, ret, dd)) {
/* XXX: Call glXDestroyContext which lives in libglvnd. If we're not
* allowed to call it from here, should we extend __glXDispatchTableIndices ?
if (pCreateGLXPbufferSGIX == NULL)
return None;
- ret = (*pCreateGLXPbufferSGIX)(dpy, config, width, height, attrib_list);
+ ret = pCreateGLXPbufferSGIX(dpy, config, width, height, attrib_list);
if (AddDrawableMapping(dpy, ret, dd)) {
PFNGLXDESTROYGLXPBUFFERSGIXPROC pDestroyGLXPbufferSGIX;
__FETCH_FUNCTION_PTR(DestroyGLXPbufferSGIX);
if (pDestroyGLXPbufferSGIX)
- (*pDestroyGLXPbufferSGIX)(dpy, ret);
+ pDestroyGLXPbufferSGIX(dpy, ret);
return None;
}
if (pCreateGLXPixmapWithConfigSGIX == NULL)
return None;
- ret = (*pCreateGLXPixmapWithConfigSGIX)(dpy, config, pixmap);
+ ret = pCreateGLXPixmapWithConfigSGIX(dpy, config, pixmap);
if (AddDrawableMapping(dpy, ret, dd)) {
/* XXX: Call glXDestroyGLXPixmap which lives in libglvnd. If we're not
* allowed to call it from here, should we extend __glXDispatchTableIndices ?
if (pDestroyGLXPbufferSGIX == NULL)
return;
- (*pDestroyGLXPbufferSGIX)(dpy, pbuf);
+ pDestroyGLXPbufferSGIX(dpy, pbuf);
}
if (pGetContextIDEXT == NULL)
return None;
- return (*pGetContextIDEXT)(ctx);
+ return pGetContextIDEXT(ctx);
}
if (pGetCurrentDisplayEXT == NULL)
return NULL;
- return (*pGetCurrentDisplayEXT)();
+ return pGetCurrentDisplayEXT();
}
if (pGetFBConfigAttribSGIX == NULL)
return GLX_NO_EXTENSION;
- return (*pGetFBConfigAttribSGIX)(dpy, config, attribute, value_return);
+ return pGetFBConfigAttribSGIX(dpy, config, attribute, value_return);
}
if (pGetFBConfigFromVisualSGIX == NULL)
return NULL;
- ret = (*pGetFBConfigFromVisualSGIX)(dpy, vis);
+ ret = pGetFBConfigFromVisualSGIX(dpy, vis);
if (AddFBConfigMapping(dpy, ret, dd))
/* XXX: dealloc ret ? */
return NULL;
if (pGetSelectedEventSGIX == NULL)
return;
- (*pGetSelectedEventSGIX)(dpy, drawable, mask);
+ pGetSelectedEventSGIX(dpy, drawable, mask);
}
if (pGetVideoSyncSGI == NULL)
return GLX_NO_EXTENSION;
- return (*pGetVideoSyncSGI)(count);
+ return pGetVideoSyncSGI(count);
}
if (pGetVisualFromFBConfigSGIX == NULL)
return NULL;
- return (*pGetVisualFromFBConfigSGIX)(dpy, config);
+ return pGetVisualFromFBConfigSGIX(dpy, config);
}
if (pQueryContextInfoEXT == NULL)
return GLX_NO_EXTENSION;
- return (*pQueryContextInfoEXT)(dpy, ctx, attribute, value);
+ return pQueryContextInfoEXT(dpy, ctx, attribute, value);
}
if (pQueryGLXPbufferSGIX == NULL)
return;
- (*pQueryGLXPbufferSGIX)(dpy, pbuf, attribute, value);
+ pQueryGLXPbufferSGIX(dpy, pbuf, attribute, value);
}
if (pReleaseTexImageEXT == NULL)
return;
- (*pReleaseTexImageEXT)(dpy, drawable, buffer);
+ pReleaseTexImageEXT(dpy, drawable, buffer);
}
if (pSelectEventSGIX == NULL)
return;
- (*pSelectEventSGIX)(dpy, drawable, mask);
+ pSelectEventSGIX(dpy, drawable, mask);
}
if (pSwapIntervalSGI == NULL)
return GLX_NO_EXTENSION;
- return (*pSwapIntervalSGI)(interval);
+ return pSwapIntervalSGI(interval);
}
if (pWaitVideoSyncSGI == NULL)
return GLX_NO_EXTENSION;
- return (*pWaitVideoSyncSGI)(divisor, remainder, count);
+ return pWaitVideoSyncSGI(divisor, remainder, count);
}
if (pBindSwapBarrierSGIX == NULL)
return;
- (*pBindSwapBarrierSGIX)(dpy, drawable, barrier);
+ pBindSwapBarrierSGIX(dpy, drawable, barrier);
}
if (pCopySubBufferMESA == NULL)
return;
- (*pCopySubBufferMESA)(dpy, drawable, x, y, width, height);
+ pCopySubBufferMESA(dpy, drawable, x, y, width, height);
}
if (pCreateGLXPixmapMESA == NULL)
return None;
- ret = (*pCreateGLXPixmapMESA)(dpy, visinfo, pixmap, cmap);
+ ret = pCreateGLXPixmapMESA(dpy, visinfo, pixmap, cmap);
if (AddDrawableMapping(dpy, ret, dd)) {
/* XXX: Call glXDestroyGLXPixmap which lives in libglvnd. If we're not
* allowed to call it from here, should we extend __glXDispatchTableIndices ?
if (pGetMscRateOML == NULL)
return GL_FALSE;
- return (*pGetMscRateOML)(dpy, drawable, numerator, denominator);
+ return pGetMscRateOML(dpy, drawable, numerator, denominator);
}
if (pGetScreenDriver == NULL)
return NULL;
- return (*pGetScreenDriver)(dpy, scrNum);
+ return pGetScreenDriver(dpy, scrNum);
}
if (pGetSwapIntervalMESA == NULL)
return 0;
- return (*pGetSwapIntervalMESA)();
+ return pGetSwapIntervalMESA();
}
if (pGetSyncValuesOML == NULL)
return False;
- return (*pGetSyncValuesOML)(dpy, drawable, ust, msc, sbc);
+ return pGetSyncValuesOML(dpy, drawable, ust, msc, sbc);
}
if (pJoinSwapGroupSGIX == NULL)
return;
- (*pJoinSwapGroupSGIX)(dpy, drawable, member);
+ pJoinSwapGroupSGIX(dpy, drawable, member);
}
if (pQueryCurrentRendererIntegerMESA == NULL)
return False;
- return (*pQueryCurrentRendererIntegerMESA)(attribute, value);
+ return pQueryCurrentRendererIntegerMESA(attribute, value);
}
if (pQueryCurrentRendererStringMESA == NULL)
return NULL;
- return (*pQueryCurrentRendererStringMESA)(attribute);
+ return pQueryCurrentRendererStringMESA(attribute);
}
if (pQueryMaxSwapBarriersSGIX == NULL)
return False;
- return (*pQueryMaxSwapBarriersSGIX)(dpy, screen, max);
+ return pQueryMaxSwapBarriersSGIX(dpy, screen, max);
}
if (pQueryRendererIntegerMESA == NULL)
return False;
- return (*pQueryRendererIntegerMESA)(dpy, screen, renderer, attribute, value);
+ return pQueryRendererIntegerMESA(dpy, screen, renderer, attribute, value);
}
if (pQueryRendererStringMESA == NULL)
return NULL;
- return (*pQueryRendererStringMESA)(dpy, screen, renderer, attribute);
+ return pQueryRendererStringMESA(dpy, screen, renderer, attribute);
}
if (pReleaseBuffersMESA == NULL)
return False;
- return (*pReleaseBuffersMESA)(dpy, d);
+ return pReleaseBuffersMESA(dpy, d);
}
if (pSwapBuffersMscOML == NULL)
return 0;
- return (*pSwapBuffersMscOML)(dpy, drawable, target_msc, divisor, remainder);
+ return pSwapBuffersMscOML(dpy, drawable, target_msc, divisor, remainder);
}
if (pSwapIntervalMESA == NULL)
return 0;
- return (*pSwapIntervalMESA)(interval);
+ return pSwapIntervalMESA(interval);
}
if (pWaitForMscOML == NULL)
return False;
- return (*pWaitForMscOML)(dpy, drawable, target_msc, divisor, remainder, ust, msc, sbc);
+ return pWaitForMscOML(dpy, drawable, target_msc, divisor, remainder, ust, msc, sbc);
}
if (pWaitForSbcOML == NULL)
return False;
- return (*pWaitForSbcOML)(dpy, drawable, target_sbc, ust, msc, sbc);
+ return pWaitForSbcOML(dpy, drawable, target_sbc, ust, msc, sbc);
}
#undef __FETCH_FUNCTION_PTR