mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
glapi/glx: rename 'table' variable to 'disp_table'
This fixes an issue where the local 'table' variable was hiding the
function parameter name in glGetColorTable(..., void *table).
This should be OK as long as there's never a GL entrypoint that uses
'disp_table' as a parameter name.
Note: This is a candidate for the 9.0 branch.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
(cherry picked from commit 043f66204b)
This commit is contained in:
parent
6e9baa85a9
commit
8b8416676e
1 changed files with 2 additions and 2 deletions
|
|
@ -423,9 +423,9 @@ __indirect_get_proc_address(const char *name)
|
|||
print ''
|
||||
print '#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)'
|
||||
print ' if (gc->isDirect) {'
|
||||
print ' const _glapi_proc *const table = GET_DISPATCH();'
|
||||
print ' const _glapi_proc *const disp_table = GET_DISPATCH();'
|
||||
print ' PFNGL%sPROC p =' % (name.upper())
|
||||
print ' (PFNGL%sPROC) table[%d];' % (name.upper(), func.offset)
|
||||
print ' (PFNGL%sPROC) disp_table[%d];' % (name.upper(), func.offset)
|
||||
print ' %sp(%s);' % (ret_string, func.get_called_parameter_string())
|
||||
print ' } else'
|
||||
print '#endif'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue