diff options
author | Brian Paul <[email protected]> | 2000-05-24 17:53:30 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-05-24 17:53:30 +0000 |
commit | 2c3a62013333fe624a431115c7913ae007bdd850 (patch) | |
tree | 99d8fc1dfa91879730ffe324caca78abbe98b5b8 /src | |
parent | 5fb84d263b8068467a2429942ecf113a0a4c8a60 (diff) |
replaced assertion with a conditional in _glapi_add_entrypoint()
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/glapi/glapi.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index ecbe345e275..9c40ce8e4de 100644 --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@ -1,4 +1,4 @@ -/* $Id: glapi.c,v 1.41 2000/05/18 18:14:22 brianp Exp $ */ +/* $Id: glapi.c,v 1.42 2000/05/24 17:53:30 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1559,12 +1559,6 @@ generate_entrypoint(GLuint functionOffset) GLboolean _glapi_add_entrypoint(const char *funcName, GLuint offset) { - /* Make sure we don't try to add a new entrypoint after someone - * has already called _glapi_get_dispatch_table_size()! If that's - * happened the caller's information will now be out of date. - */ - assert(!GetSizeCalled); - /* first check if the named function is already statically present */ { GLint index = get_static_proc_offset(funcName); @@ -1595,6 +1589,13 @@ _glapi_add_entrypoint(const char *funcName, GLuint offset) } } + /* Make sure we don't try to add a new entrypoint after someone + * has already called _glapi_get_dispatch_table_size()! If that's + * happened the caller's information would become out of date. + */ + if (GetSizeCalled) + return GL_FALSE; + /* make sure we have space */ if (NumExtEntryPoints >= MAX_EXTENSION_FUNCS) { return GL_FALSE; |