glapi: these two should be ok for add_dispatch ...
- a function cannot be both static and extension, right ? - we should be setting the offset only if not already set, right ?
This commit is contained in:
@@ -437,6 +437,8 @@ _glapi_add_dispatch( const char * const * function_names,
|
||||
}
|
||||
|
||||
offset = static_offset;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
/* search added extension functions */
|
||||
@@ -492,7 +494,9 @@ _glapi_add_dispatch( const char * const * function_names,
|
||||
}
|
||||
}
|
||||
|
||||
set_entry_info( entry[i], real_sig, offset );
|
||||
if (entry[i]->dispatch_offset == ~0) {
|
||||
set_entry_info( entry[i], real_sig, offset );
|
||||
}
|
||||
}
|
||||
|
||||
return offset;
|
||||
|
Reference in New Issue
Block a user