summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorGeorge Sapountzis <[email protected]>2010-03-08 03:10:30 +0200
committerGeorge Sapountzis <[email protected]>2010-03-10 18:44:47 +0200
commitbae31355150f66f7130d76a2ab4d4b735f239c71 (patch)
tree162f5d7abeea37cc6dff26f7f20909643309f0b0 /src/mesa
parent0d1dde5b010feba1afe5b51cc6fe66c85371f70b (diff)
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 ?
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/glapi/glapi_getproc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/glapi/glapi_getproc.c b/src/mesa/glapi/glapi_getproc.c
index 921df262af8..5a8c6953ac2 100644
--- a/src/mesa/glapi/glapi_getproc.c
+++ b/src/mesa/glapi/glapi_getproc.c
@@ -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;