mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
make get_static_proc_address() return a _glapi_proc
This commit is contained in:
parent
7ee79c80ea
commit
209bd3a5b4
1 changed files with 3 additions and 3 deletions
|
|
@ -511,14 +511,14 @@ extern const GLubyte gl_dispatch_functions_start[];
|
||||||
* Return dispatch function address the named static (built-in) function.
|
* Return dispatch function address the named static (built-in) function.
|
||||||
* Return NULL if function not found.
|
* Return NULL if function not found.
|
||||||
*/
|
*/
|
||||||
static const GLvoid *
|
static const _glapi_proc
|
||||||
get_static_proc_address(const char *funcName)
|
get_static_proc_address(const char *funcName)
|
||||||
{
|
{
|
||||||
const glprocs_table_t * const f = find_entry( funcName );
|
const glprocs_table_t * const f = find_entry( funcName );
|
||||||
|
|
||||||
if ( f != NULL ) {
|
if ( f != NULL ) {
|
||||||
return gl_dispatch_functions_start
|
return (_glapi_proc) (gl_dispatch_functions_start
|
||||||
+ (X86_DISPATCH_FUNCTION_SIZE * f->Offset);
|
+ (X86_DISPATCH_FUNCTION_SIZE * f->Offset));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue