glx: Don't use glapitable.h at all
When --enable-shared-glapi is used, all non-ABI entries in the table are lies. Avoiding the use of glapitable.h avoids the lies. The only entries used in this code are entries that are ABI. For these, the ABI offset can be used directly. Since this code is in src/glx, it can't use src/mesa/main/dispatch.h to get the pretty names for these offsets. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
@@ -423,7 +423,10 @@ __indirect_get_proc_address(const char *name)
|
||||
print ''
|
||||
print '#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)'
|
||||
print ' if (gc->isDirect) {'
|
||||
print ' %sGET_DISPATCH()->%s(%s);' % (ret_string, func.name, func.get_called_parameter_string())
|
||||
print ' const _glapi_proc *const table = GET_DISPATCH();'
|
||||
print ' PFNGL%sPROC p =' % (name.upper())
|
||||
print ' (PFNGL%sPROC) table[%d];' % (name.upper(), func.offset)
|
||||
print ' %sp(%s);' % (ret_string, func.get_called_parameter_string())
|
||||
print ' } else'
|
||||
print '#endif'
|
||||
print ' {'
|
||||
|
Reference in New Issue
Block a user