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:
George Sapountzis
2010-03-08 03:10:30 +02:00
parent 0d1dde5b01
commit bae3135515

View File

@@ -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;